|
6 | 6 | % - https://GitHub.com/sphinx-doc/sphinx/issues/3511 |
7 | 7 | % |
8 | 8 | \usepackage{fontspec} |
9 | | -\usepackage{unicode-math} |
10 | 9 |
|
11 | 10 | % Set Main fonts |
12 | | -\setmainfont{Noto Serif} |
13 | | -\setsansfont{Noto Sans} |
14 | | - |
15 | | -% Set your requested Source Code Pro for Monospace |
16 | | -% Make sure "Source Code Pro" is installed on your Windows system |
17 | | -\setmonofont{Source Code Pro}[Scale=MatchLowercase] |
| 11 | +\usepackage{libertinus-otf} |
| 12 | +%\usepackage{noto-emoji} |
18 | 13 |
|
19 | 14 | % Set Math font |
20 | | -\setmathfont{Libertinus Math} |
| 15 | +\usepackage{unicode-math} |
| 16 | +\setmathfont{LibertinusMath} |
21 | 17 |
|
22 | 18 | % Set Symbol font |
23 | | -\newfontfamily{\symbolsfont}{DejaVu Sans} |
24 | | - |
25 | | - |
26 | | -% 4. Handle the "Package" Icon and other Symbols |
27 | | -% If Noto Serif misses the 📦 icon, we can define a fallback |
28 | | -%\newfontfamily{\symbolsfont}{Segoe UI Symbol} % Excellent on Windows |
29 | | -%\newfontfamily{\emojifont}{Segoe UI Emoji} |
30 | | - |
31 | | -% Tell XeLaTeX to look for specific characters in other fonts if missing |
32 | | -% This requires the 'ucharclasses' package or manual substitution |
33 | | - |
| 19 | +\usepackage{newunicodechar} |
| 20 | +\newfontfamily{\emojifont}[Renderer=OpenType]{NotoColorEmoji.ttf} |
| 21 | +\newunicodechar{≤}{\ensuremath{\le}} |
| 22 | +\newunicodechar{—}{---} |
| 23 | +\newunicodechar{…}{\dots} |
| 24 | +\newunicodechar{␣}{\ttfamily\char32} % open box = visible space U+2423 |
| 25 | + |
| 26 | +\newunicodechar{🍎}{{\emojifont 🍎}} % red apple |
| 27 | +\newunicodechar{🍏}{{\emojifont 🍏}} % green apple |
| 28 | +\newunicodechar{🐧}{{\emojifont 🐧}} % penguin |
| 29 | +\newunicodechar{⛄}{{\emojifont ⛄}} % snowman |
| 30 | +\newunicodechar{🪟}{{\emojifont 🪟}} % window |
| 31 | +\newunicodechar{🏢}{{\emojifont 🏢}} % glas building |
| 32 | +\newunicodechar{🐍}{{\emojifont 🐍}} % green snake |
| 33 | +\newunicodechar{🔴}{{\emojifont 🔴}} % red circle |
| 34 | +\newunicodechar{🟠}{{\emojifont 🟠}} % orange circle |
| 35 | +\newunicodechar{🟡}{{\emojifont 🟡}} % yellow circle |
| 36 | +\newunicodechar{🟢}{{\emojifont 🟢}} % green circle |
| 37 | +\newunicodechar{🟣}{{\emojifont 🟣}} % purple circle |
| 38 | +\newunicodechar{⚫}{{\emojifont ⚫}} % black circle U+26AB |
| 39 | +\newunicodechar{🟧}{{\emojifont 🟧}} % red square U+1F7E7 |
| 40 | +\newunicodechar{🟨}{{\emojifont 🟨}} % yellow square U+1F7E8 |
| 41 | +\newunicodechar{🟫}{{\emojifont 🟫}} % braun square U+1F7EB |
| 42 | +\newunicodechar{🟦}{{\emojifont 🟦}} % blue square U+1F7E6 |
| 43 | +\newunicodechar{🟪}{{\emojifont 🟪}} % purple square U+1F7EA |
| 44 | +\newunicodechar{⟲}{{\emojifont ⟲}} % circular arrow counterclockwise U+27F2 |
| 45 | +\newunicodechar{📦}{{\emojifont 📦}} |
| 46 | +\newunicodechar{📂}{{\emojifont 📂}} |
| 47 | +\newunicodechar{🗑}{{\emojifont 🗑}} % Wastebasket 🗑️ U+1F5D1 |
34 | 48 |
|
35 | 49 | % ================================================================================ |
0 commit comments