summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex')
-rw-r--r--Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex21
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex
new file mode 100644
index 00000000000..9ad64caa7b9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fontsetup/fspgfsdidotot.tex
@@ -0,0 +1,21 @@
+\setmainfont[ItalicFont=GFSOlgaGrDidotItEn,
+ BoldFont=GFSDidotBold,
+ BoldItalicFont=GFSDidotBoldItalic,SlantedFont=GFSDidotItalic,
+ SmallCapsFeatures={Numbers=OldStyle}]{GFSDidot.otf}
+\setmathfont{NewCMMath-Book.otf}
+\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{GFSDidot.otf}
+\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{GFSDidotBold.otf}
+\setmathfont[range=\mathit/{greek,Greek}]{GFSOlga.otf}
+\setmathfont[range=\mathit/{num,latin,Latin}]{GFSDidotItalic.otf}
+\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{GFSDidotBoldItalic.otf}
+
+%%%%%%%%%% Fix epsilons %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\AtBeginDocument{\renewcommand*{\epsilon}{\textit{ε}}
+\renewcommand*{\varepsilon}{\textsl{ε}}}
+%%%%%%%%% Fix phi %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newfontfamily\phifix[Scale=1.2]{GFSDidotItalic.otf}
+\AtBeginDocument{\renewcommand*{\phi}{\textrm{\phifix\char"03D5}}}
+%%%%%%%%% Fix theta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\AtBeginDocument{\renewcommand*{\theta}{\textsl{θ}}
+\renewcommand*{\vartheta}{\textit{θ}}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ No newline at end of file