diff options
author | Norbert Preining <norbert@preining.info> | 2021-06-07 03:02:21 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-06-07 03:02:21 +0000 |
commit | 1ba2ae020aea220436899cf65f5a85c1686940cd (patch) | |
tree | 1a212dbc995aba6b72a39941cad6b3ded5d2516e /macros/unicodetex/latex/simplivre/simplivre.cls | |
parent | 4338972cc175be565a3441c4ae8a6aa0dfcbe9f9 (diff) |
CTAN sync 202106070302
Diffstat (limited to 'macros/unicodetex/latex/simplivre/simplivre.cls')
-rw-r--r-- | macros/unicodetex/latex/simplivre/simplivre.cls | 78 |
1 files changed, 74 insertions, 4 deletions
diff --git a/macros/unicodetex/latex/simplivre/simplivre.cls b/macros/unicodetex/latex/simplivre/simplivre.cls index bab668ae35..89c47fa8ec 100644 --- a/macros/unicodetex/latex/simplivre/simplivre.cls +++ b/macros/unicodetex/latex/simplivre/simplivre.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{simplivre} - [2021/05/23 A simple and clear book style] + [2021/06/07 A simple and clear book style] \def\minimclass@baseclass{book} \RequirePackage{kvoptions} \RequirePackage{etoolbox} @@ -28,6 +28,11 @@ \DeclareBoolOption[false]{draft} \DeclareBoolOption[false]{fast} \DeclareBoolOption[false]{classical} +\DeclareBoolOption[false]{palatino} +\DeclareBoolOption[false]{times} +\DeclareBoolOption[false]{garamond} +\DeclareBoolOption[false]{biolinum} +\DeclareBoolOption[false]{customfont} \newif\if@minimclass@bfivepaper\@minimclass@bfivepaperfalse \DeclareVoidOption{b5paper}{\@minimclass@bfivepapertrue} @@ -40,6 +45,18 @@ \if@minimclass@draft \@minimclass@fasttrue \fi +\if@minimclass@palatino + \@minimclass@customfonttrue +\fi +\if@minimclass@times + \@minimclass@customfonttrue +\fi +\if@minimclass@garamond + \@minimclass@customfonttrue +\fi +\if@minimclass@biolinum + \@minimclass@customfonttrue +\fi %%================================ %% Page layout @@ -89,8 +106,10 @@ %% Fonts %%================================ %% Math fonts in fast mode -\if@minimclass@fast - \RequirePackage{mathpazo} +\if@minimclass@customfont\else + \if@minimclass@fast + \RequirePackage{mathpazo} + \fi \fi %% English fonts @@ -118,6 +137,7 @@ %% Chinese fonts \PassOptionsToPackage{fontset=none,scheme=plain}{ctex} \RequirePackage{ctex} +\WarningFilter{everysel}{Everysel is no longer required} \IfFontExistsTF{FZYOUSK_507R--GBK1-0}{% \setCJKmainfont{FZYOUSK_507R--GBK1-0}[ BoldFont = FZYOUSK_509R--GBK1-0 , @@ -167,6 +187,7 @@ } %% Math font +\if@minimclass@customfont\else \if@minimclass@fast \RequirePackage{amssymb} \else @@ -216,10 +237,59 @@ \setmathfont[range=bfcal, Scale=MatchUppercase, Alternate]{Asana-Math.otf} }{} \fi +\fi + +\if@minimclass@palatino + \RequirePackage{amssymb} + \RequirePackage{mathpazo} + \PassOptionsToPackage{defaultsups}{newpxtext} + \RequirePackage{newpxtext} + \RequirePackage{newpxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.07}} +\fi + +\if@minimclass@times + \RequirePackage{amssymb} + \PassOptionsToPackage{defaultsups}{newtxtext} + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.00}} +\fi + +\if@minimclass@garamond + \RequirePackage{amssymb} + \PassOptionsToPackage{lining}{ebgaramond} + \RequirePackage{ebgaramond-maths} + \RequirePackage{ebgaramond} + % \RequirePackage{garamondlibre} + \PJLsetlinespacing{\setstretch{1.00}} +\fi + +\if@minimclass@biolinum + \RequirePackage{amssymb} + % \RequirePackage{mathpazo} + % \RequirePackage[sansmath]{libertinust1math} + \ifPDFTeX + \RequirePackage{biolinum} + \renewcommand*\familydefault{\biolinum@family} + \else + \PassOptionsToPackage{no-math}{fontspec} + \RequirePackage{fontspec} + \setmainfont{LinBiolinum_R.otf}[ + BoldFont = LinBiolinum_RB.otf , + ItalicFont = LinBiolinum_RI.otf , + BoldItalicFont = LinBiolinum_RBO.otf ] + \fi + \PJLsetlinespacing{\setstretch{1.05}} + \RequirePackage[italic,defaultmathsizes]{mathastext} +\fi \def\PJL@font@alreadyset{} -\RequirePackage[verbose=silent]{microtype} +\PassOptionsToPackage{verbose=silent}{microtype} +\RequirePackage{microtype} %%================================ %% Graphics |