Skip to content
Snippets Groups Projects
Commit 96e8b9a7 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

neue Otpionen: "mathserif", "mathsanserif"

parent 16bb278f
No related branches found
No related tags found
No related merge requests found
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
\ProvidesFile{ptbposter-new-engines.clo}%
[2020/03/09 v0.1f `PTB-Poster' new engines (RN/PTB)]
[2022/09/08 v0.1g `PTB-Poster' new engines (RN/PTB)]
\RequirePackage{unicode-math}
\setmainfont{texgyrepagella}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = MatchLowercase]
\setmathfont{texgyrepagella-math.otf}[math-style=ISO,bold-style=ISO]
\unimathsetup{partial=upright}%TODO: fira-math
\makeatletter % wegen Laden aus normalem LaTeX-Dokument
\@ifundefined{ifSERIF}{%
\newif\ifSERIF \SERIFfalse
}{}
\@ifundefined{ifMATHSERIF}{%
\newif\ifMATHSERIF \MATHSERIFfalse
}{}
\ifSERIF\else
\ifSERIF
\setmainfont{texgyrepagella}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\else
\setmainfont{texgyreheros}[
Ligatures=TeX,
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\renewcommand*\familydefault{\sfdefault}% ???
\fi
\ifMATHSERIF
\setmathfont{texgyrepagella-math.otf}[
math-style=TeX,
bold-style=TeX,
]
\else
\RequirePackage[usefilenames,weight=Regular]{firamath-otf}
\setmathfont[range=it]{texgyreheros-italic.otf}
\setoperatorfont\mathsf
\renewcommand*\familydefault{\sfdefault}
\setoperatorfont\mathsf
\unimathsetup{partial=upright}%
%\setmathfont{texgyreheros-italic.otf}[range=it]
\fi
\setmonofont{AnonymousPro-Regular}[%
Extension = .ttf,
BoldFont = AnonymousPro-Bold,
ItalicFont = AnonymousPro-Italic,
BoldItalicFont = AnonymousPro-BoldItalic,
Scale = MatchLowercase]
\RequirePackage{newunicodechar}
\newunicodechar{^^^^202f}{\,}% 'NARROW NO-BREAK SPACE' (\u202F, 8239)
\newunicodechar{^^^^2009}{\,\hspace{0pt}}% 'THIN SPACE'
......
......@@ -49,6 +49,7 @@
\newif\ifPTBlandscape \PTBlandscapefalse
\newif\ifPTB@XeOrLua \PTB@XeOrLuafalse
\newif\ifSERIF \SERIFfalse
\newif\ifMATHSERIF \MATHSERIFfalse
\newif\ifPTB@logo@long@ \PTB@logo@long@true
\RequirePackage{ifluatex,ifxetex}
......@@ -69,6 +70,12 @@
\DeclareOption{serif}{%
\SERIFtrue
}
\DeclareOption{mathsanserif}{%
\MATHSERIFfalse
}
\DeclareOption{mathserif}{%
\MATHSERIFtrue
}
\DeclareOption{boldTitle}{%
\global\let\PTB@title@series=\bfseries
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment