Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ Installed additional tools are:
### Installed Fonts

* Cabin
* DejaVu
* Latin Modern (LM)
* Libertinus (optimized `Linux Libertine` for LuaLaTeX)
* [URW Type Foundy](https://en.wikipedia.org/wiki/URW_Type_Foundry)
* URW Bookman (`ITC Bookman` clone)
* Nimbus Sans (`Helvetica` clone)
* Nimbus Roman (`Times New Roman` clone)
* ~~Palladio -> Palatino~~
* Noto (No Tofu)

## Derived Variant Docker Images

Expand Down
3 changes: 3 additions & 0 deletions example/lualatex/Icons.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ \chapter{Unicode Icons}
\item U+2699 Gear ⚙
\item U+26D4 No entry ⛔
\item U+274C Cross Mark ❌
\item U+2753 Black Question Mark Ornament ❓
\item U+2757 Heavy Exclamation Mark Symbol ❗
\item U+2796 Heavy Minus Sign ➖
\item U+1F6AB No entry sign 🚫
\item U+1F6C7 Prohibited %🛇
\item U+26A0 Warning ⚠
Expand Down
10 changes: 5 additions & 5 deletions example/lualatex/Symbols.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ \chapter{Symbols}
\item U+2264 Less-than or equal to ≤
\item U+2265 Greater-than or equal to ≥
\item U+00B1 Plus-minus sign ±
\item U+2190 \ensuremath{←}
\item U+2191 \ensuremath{↑}
\item U+2192 \ensuremath{→}
\item U+2193 \ensuremath{↓}
\item U+2194 \ensuremath{↔}
\item U+2190
\item U+2191
\item U+2192
\item U+2193
\item U+2194
\item U+2195 %↕
\item U+2196 %↖
\item U+2197 %↗
Expand Down
42 changes: 39 additions & 3 deletions example/lualatex/document.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,45 @@
\setmathfont{DejaVu Math TeX Gyre} %DejaVuMathTeXGyre-Regular
\else
% Set the fonts to Latin Modern (LaTeX font derived from Computer Modern)
\setmainfont{Latin Modern Roman}
\setsansfont{Latin Modern Sans}
\setmonofont{Latin Modern Mono}
\setmainfont{Latin Modern Roman}[
% Design Sizes: Use the correct file for the current font size
SizeFeatures={
{Size={-6}, Font=LMRoman5-Regular},
{Size={6-7}, Font=LMRoman6-Regular},
{Size={7-8}, Font=LMRoman7-Regular},
{Size={8-9}, Font=LMRoman8-Regular},
{Size={9-10}, Font=LMRoman9-Regular},
{Size={10-12}, Font=LMRoman10-Regular},
{Size={12-17}, Font=LMRoman12-Regular},
{Size={17-}, Font=LMRoman17-Regular},
},
% Specific Small Caps font
SmallCapsFont={Latin Modern Roman Caps},
% Specific Slanted font (and its small caps)
SlantedFont={Latin Modern Roman Slanted},
SlantedFeatures={SmallCapsFont={LMRomanCaps10-Oblique}},
% Standard Italic/Bold
ItalicFont={LMRoman10-Italic},
BoldFont={LMRoman10-Bold},
BoldItalicFont={LMRoman10-BoldItalic}
]
\setsansfont{Latin Modern Sans}[
SizeFeatures={
{Size={-9}, Font=LMSans8-Regular},
{Size={9-10}, Font=LMSans9-Regular},
{Size={10-12}, Font=LMSans10-Regular},
{Size={12-17}, Font=LMSans12-Regular},
{Size={17-}, Font=LMSans17-Regular},
},
ItalicFont={LMSans10-Oblique}, % LM Sans uses Oblique as its Italic
BoldFont={LMSans10-Bold},
BoldItalicFont={LMSans10-BoldOblique}
]
\setmonofont{Latin Modern Mono}[
SmallCapsFont={Latin Modern Mono Caps},
SlantedFont={Latin Modern Mono Slanted},
% LM Mono also has a "Light" and "Condensed" version available if needed
]
\setmathfont{Latin Modern Math}
\fi
\fi
Expand Down
3 changes: 3 additions & 0 deletions example/sphinx/Icons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ Unicode Icons
:U+2699 Gear: ⚙
:U+26D4 No entry: ⛔
:U+274C Cross Mark: ❌
:U+2753 Black Question Mark Ornament: ❓
:U+2757 Heavy Exclamation Mark Symbol: ❗
:U+2796 Heavy Minus Sign: ➖
:U+1F6AB No entry sign: 🚫
:U+1F6C7 Prohibited: ???
:U+26A0 Warning: ⚠
Expand Down
10 changes: 5 additions & 5 deletions example/sphinx/Symbols.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ Symbols
:U+2192 Rightward Arrow: →
:U+2193 Downward Arrow: ↓
:U+2194: ↔
:U+2195:
:U+2196:
:U+2197:
:U+2198:
:U+2199:
:U+2195: ???
:U+2196: ???
:U+2197: ???
:U+2198: ???
:U+2199: ???
:U+2921: ???
:U+2292: ???
:U+21A4: ???
Expand Down
27 changes: 17 additions & 10 deletions pytooling.sty
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@
designed for the LuaTeX engine. Please switch your compiler.}
\fi

\newunicodechar{≤}{\ensuremath{\le}}
\newunicodechar{≥}{\ensuremath{\ge}}
\newunicodechar{≤}{\ensuremath{≤}} % \le
\newunicodechar{≥}{\ensuremath{≥}} % \ge
\newunicodechar{±}{\ensuremath{\pm}}
\newunicodechar{—}{---}
\newunicodechar{…}{\dots}
%\newunicodechar{␣}{ } % open box = visible space U+2423
\newunicodechar{⟲}{\ensuremath{\leftcirclearrowleft}} % circular arrow counterclockwise U+27F2
%\newunicodechar{→}{\ensuremath{\rightarrow}} % Rightwards Arrow U+2192
\newunicodechar{⭠}{\ensuremath{\arrowltog}} % Leftwards Triangle-Headed Arrow U+2B60 arrowbtog = Arrow Bottom To Gloss
\newunicodechar{⭡}{\ensuremath{\arrowutog}} % Upwards Triangle-Headed Arrow U+2B61
%\newunicodechar{⭢}{\arrowbtog} % Rightwards Triangle-Headed Arrow U+2B62
\newunicodechar{⭣}{\ensuremath{\arrowdtog}} % Downwards Triangle-Headed Arrow U+2B63

%\newunicodechar{␣}{ } % open box = visible space U+2423
\newunicodechar{⟲}{\ensuremath{\acwopencirclearrow}} % circular arrow counterclockwise U+27F2
\newunicodechar{←}{\ensuremath{\leftarrow}} % Leftwards Arrow U+2190
\newunicodechar{↑}{\ensuremath{\uparrow}} % Upwards Arrow U+2191
\newunicodechar{→}{\ensuremath{\rightarrow}} % Rightwards Arrow U+2192
\newunicodechar{↓}{\ensuremath{\downarrow}} % Downwards Arrow U+2193
\newunicodechar{↔}{\ensuremath{\leftrightarrow}} % U+2194
\newunicodechar{↕}{\ensuremath{\updowntarrow}} % U+2195
%\newunicodechar{⭠}{\ensuremath{⭠}} % Leftwards Triangle-Headed Arrow U+2B60
%\newunicodechar{⭡}{\ensuremath{⭡}} % Upwards Triangle-Headed Arrow U+2B61
%\newunicodechar{⭢}{\ensuremath{⭢}} % Rightwards Triangle-Headed Arrow U+2B62
%\newunicodechar{⭣}{\ensuremath{⭣}} % Downwards Triangle-Headed Arrow U+2B63
\newunicodechar{🍎}{{\emojifont 🍎}} % red apple U+1F34E
\newunicodechar{🍏}{{\emojifont 🍏}} % green apple U+1F34F
\newunicodechar{🐧}{{\emojifont 🐧}} % penguin U+1F427
Expand Down Expand Up @@ -56,6 +60,9 @@
\newunicodechar{⚙}{{\emojifont ⚙}} % Gear ⚙️ U+2699
\newunicodechar{⛔}{{\emojifont ⛔}} % No entry U+26D4
\newunicodechar{❌}{{\emojifont ❌}} % Cross Mark U+274C
\newunicodechar{❓}{{\emojifont ❓}} % Black Question Mark Ornament U+2753
\newunicodechar{❗}{{\emojifont ❗}} % Heavy Exclamation Mark Symbol U+2757
\newunicodechar{➖}{{\emojifont ➖}} % Heavy Minus Sign U+2796
\newunicodechar{🚫}{{\emojifont 🚫}} % No entry sign U+1F6AB
\newunicodechar{🛇}{{\emojifont 🛇}} % Prohibited U+1F6C7
\newunicodechar{⚠}{{\emojifont ⚠}} % Warning U+26A0
Expand Down