Skip to content

Commit 07ab587

Browse files
committed
add back a serif math font and document
1 parent eb10057 commit 07ab587

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ FROM ${BASE} as build-fonts
8383

8484
RUN apt update && apt install -y \
8585
wget \
86-
xfonts-utils
86+
xfonts-utils \
87+
xz-utils
8788

8889
# Install Arial via ttf-mscorefonts
8990
RUN wget http://ftp.us.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.8.1_all.deb
@@ -96,6 +97,12 @@ RUN wget https://github.com/kaienfr/Font/raw/master/font/ARIALUNI.TTF -P /usr/sh
9697
# Install Noto Sans Mono
9798
RUN apt install -y fonts-noto
9899

100+
# Install Libertinus Math
101+
RUN wget https://github.com/alerque/libertinus/releases/download/v7.040/Libertinus-7.040.tar.xz && \
102+
tar -xJf Libertinus-7.040.tar.xz && \
103+
mkdir -p /usr/share/fonts/OTF/ && \
104+
cp Libertinus-7.040/static/OTF/*.otf /usr/share/fonts/OTF/
105+
99106
# Build's done. Copy what we need into the actual container for running.
100107
FROM ${BASE} as run
101108

@@ -109,6 +116,7 @@ COPY --from=build-texlive /texlivebins /usr/local/texlive
109116
COPY --from=build-fonts \
110117
/usr/share/fonts/truetype/msttcorefonts/Arial* \
111118
/usr/share/fonts/TTF/ARIAL* \
119+
/usr/share/fonts/OTF/Libertinus* \
112120
/usr/share/fonts/truetype/noto/NotoSansMono* \
113121
/usr/share/fonts/
114122

@@ -177,7 +185,6 @@ RUN tlmgr update --self && tlmgr install \
177185
ragged2e \
178186
selnolig \
179187
setspace \
180-
tex-gyre \
181188
textpos \
182189
titling \
183190
unicode-math \

guide.tcg

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ Reach out to <admin@trustedcomputinggroup> with any questions about this documen
7777

7878
# Scope and Purpose
7979

80+
::: Note :::
81+
This document demonstrates the TCG Pandoc toolset, which automatically adds
82+
"TCG Confidential" at the bottom of all drafts. This document is itself not TCG
83+
Confidential because it is a part of an open-source repository.
84+
::::::::::::
85+
8086
The purpose of this guide is to demonstrate the usage of Markdown-plus-GitHub
8187
document-authorship flows for TCG workgroup usage.
8288

@@ -877,6 +883,14 @@ Use the `.plain` class to avoid drawing any lines or background shading.
877883
This is useful when you want to present some tabular text without styling it
878884
like "an actual table".
879885

886+
```md
887+
: {.plain}
888+
889+
----- -----
890+
like this
891+
----- -----
892+
```
893+
880894
: {.plain}
881895

882896
----- -----
@@ -988,16 +1002,24 @@ we recommend using the functions `\mathbf` (for functions) and `\mathit` (for id
9881002
This avoids strange kerning issues where a string is treated as a product of single-character symbols, like in @eq:hmac-iso-bad-kerning:
9891003

9901004
```md
991-
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) \coloneq H((\bar{K} \oplus \mathit{OPAD}) \Vert H((\bar{K} \oplus \mathit{IPAD}) \Vert \mathit{someTEXT})) $$ {#eq:hmac-iso}
1005+
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) \coloneq H((\bar{K} \oplus \mathit{OPAD}) \parallel H((\bar{K} \oplus \mathit{IPAD}) \parallel \mathit{someTEXT})) $$ {#eq:hmac-iso}
9921006
```
9931007

994-
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) \coloneq H((\bar{K} \oplus \mathit{OPAD}) \Vert H((\bar{K} \oplus \mathit{IPAD}) \Vert \mathit{someTEXT})) $$ {#eq:hmac-iso}
1008+
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) \coloneq H((\bar{K} \oplus \mathit{OPAD}) \parallel H((\bar{K} \oplus \mathit{IPAD}) \parallel \mathit{someTEXT})) $$ {#eq:hmac-iso}
1009+
1010+
```md
1011+
$$ HMAC(K, someTEXT) \coloneq H((\bar{K} \oplus OPAD) \parallel H((\bar{K} \oplus IPAD) \parallel someTEXT)) $$ {#eq:hmac-iso-bad-kerning}
1012+
```
1013+
1014+
$$ HMAC(K, someTEXT) \coloneq H((\bar{K} \oplus OPAD) \parallel H((\bar{K} \oplus IPAD) \parallel someTEXT)) $$ {#eq:hmac-iso-bad-kerning}
1015+
1016+
You can use Unicode characters to make equations a little more readable in plain-text:
9951017

9961018
```md
997-
$$ HMAC(K, someTEXT) \coloneq H((\bar{K} \oplus OPAD) \Vert H((\bar{K} \oplus IPAD) \Vert someTEXT)) $$ {#eq:hmac-iso-bad-kerning}
1019+
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) := H((\bar{K} ⊕ \mathit{OPAD}) \parallel H((\bar{K} ⊕ \mathit{IPAD}) \parallel \mathit{someTEXT})) $$ {#eq:hmac-unicode}
9981020
```
9991021

1000-
$$ HMAC(K, someTEXT) \coloneq H((\bar{K} \oplus OPAD) \Vert H((\bar{K} \oplus IPAD) \Vert someTEXT)) $$ {#eq:hmac-iso-bad-kerning}
1022+
$$ \mathbf{HMAC}(K, \mathit{someTEXT}) := H((\bar{K} ⊕ \mathit{OPAD}) \parallel H((\bar{K} ⊕ \mathit{IPAD}) \parallel \mathit{someTEXT})) $$ {#eq:hmac-unicode}
10011023

10021024
# Advanced Features
10031025

template/tcg.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@
332332
\newunicodechar{→}{\textfallback{→}}
333333

334334
\usepackage{unicode-math}
335-
% \setmathfont{TeX Gyre Schola} % For math mode in equations
336-
% \setmathrm{TeX Gyre Schola} % For text mode in equations
335+
\setmathfont{Libertinus Math} % For math mode in equations
336+
\setmathrm{Libertinus Serif} % For text mode in equations
337337

338338
% Customize the spacing for math to relax it a bit.
339339
\thinmuskip=6mu

0 commit comments

Comments
 (0)