summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/marcellus/marcellus.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-11 21:30:27 +0000
committerKarl Berry <karl@freefriends.org>2019-05-11 21:30:27 +0000
commitbf6e72221f852238d27b67e5d01c6c9401ea4e7f (patch)
treeb944f29f430d4a09c4a41e1d3eb6290e9383e891 /Master/texmf-dist/tex/latex/marcellus/marcellus.sty
parent6a510a068639f0d642553c04f9e8e3dc4d958bb1 (diff)
marcellus (11may19)
git-svn-id: svn://tug.org/texlive/trunk@51088 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/marcellus/marcellus.sty')
-rw-r--r--Master/texmf-dist/tex/latex/marcellus/marcellus.sty65
1 files changed, 65 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/marcellus/marcellus.sty b/Master/texmf-dist/tex/latex/marcellus/marcellus.sty
new file mode 100644
index 00000000000..783129ea1e4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/marcellus/marcellus.sty
@@ -0,0 +1,65 @@
+\ProvidesPackage{marcellus}[%
+ 2019/05/11 (Bob Tennent) Supports Marcellus fonts for all LaTeX engines. ]
+
+\RequirePackage{ifxetex,ifluatex,textcomp}
+
+\newif\ifmarcellus@ttf
+\ifxetex
+ \marcellus@ttftrue
+\else\ifluatex
+ \marcellus@ttftrue
+\else % [pdf]LaTeX
+ \marcellus@ttffalse
+\fi\fi
+
+\newcommand*{\Marcellus@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\Marcellus@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\Marcellus@scale}{#1}}
+
+\DeclareOptionX{type1}{\marcellus@ttffalse}
+
+\ProcessOptionsX\relax
+
+\ifmarcellus@ttf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes,mweights}
+\fi
+
+\ifmarcellus@ttf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Extension = .ttf ,
+ }
+ \setmainfont
+ [ UprightFont = *-Regular ,
+ BoldFont = *-Regular,
+ SmallCapsFont = {MarcellusSmallcaps}
+ ]
+ {Marcellus}
+ \newfontfamily\marcellus
+ [ UprightFont = *-Regular ,
+ BoldFont = *-Regular,
+ SmallCapsFont = {MarcellusSmallcaps}
+ ]
+ {Marcellus}
+
+\else % type1
+
+ \def\mdseries@rm{regular}
+ \def\bfseries@rm{regular}
+ \def\marcellusfamily{Marcellus-LF}
+ \renewcommand*\rmdefault{\marcellusfamily}
+ \newcommand*\marcellus{\fontfamily{\marcellusfamily}\selectfont}
+
+\fi
+
+% turn off defaults in case other fonts are selected:
+\ifmarcellus@ttf
+ \defaultfontfeatures{}
+\fi
+
+\endinput
+