summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fontsetup/fspmsgaramondot.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fontsetup/fspmsgaramondot.sty')
-rw-r--r--macros/latex/contrib/fontsetup/fspmsgaramondot.sty23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/fontsetup/fspmsgaramondot.sty b/macros/latex/contrib/fontsetup/fspmsgaramondot.sty
new file mode 100644
index 0000000000..3d3907cb8b
--- /dev/null
+++ b/macros/latex/contrib/fontsetup/fspmsgaramondot.sty
@@ -0,0 +1,23 @@
+%\RequirePackage[no-math]{fontspec}
+\RequirePackage{fontspec}
+\defaultfontfeatures{Ligatures=TeX}
+%\RequirePackage[garamond]{mathdesign}
+
+
+\newfontfamily{\defaultfont}{Garamond}
+\newfontfamily{\greekfont}{Garamond}
+
+\RequirePackage[Latin, Greek]{ucharclasses}
+\setDefaultTransitions{\defaultfont}{}
+\setTransitionsForLatin{\defaultfont}{}
+\setTransitionsForGreek{\greekfont}{}
+
+\RequirePackage{unicode-math}
+\setmathfont{Garamond-Math.otf}
+\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Garamond}
+\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{Garamond Bold}
+\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{Garamond Italic}
+\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{Garamond Bold}
+
+
+\endinput