diff options
Diffstat (limited to 'macros/latex/contrib/colorist/colorart.cls')
-rw-r--r-- | macros/latex/contrib/colorist/colorart.cls | 76 |
1 files changed, 74 insertions, 2 deletions
diff --git a/macros/latex/contrib/colorist/colorart.cls b/macros/latex/contrib/colorist/colorart.cls index 304a002614..8e6fd2d020 100644 --- a/macros/latex/contrib/colorist/colorart.cls +++ b/macros/latex/contrib/colorist/colorart.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{colorart} - [2021/05/24 A colorful article style] + [2021/06/07 A colorful article style] \def\colorclass@baseclass{article} \RequirePackage{kvoptions} \RequirePackage{etoolbox} @@ -27,6 +27,11 @@ } \DeclareBoolOption[false]{draft} \DeclareBoolOption[false]{fast} +\DeclareBoolOption[false]{palatino} +\DeclareBoolOption[false]{times} +\DeclareBoolOption[false]{garamond} +\DeclareBoolOption[false]{biolinum} +\DeclareBoolOption[false]{customfont} \newif\if@colorclass@bfivepaper\@colorclass@bfivepaperfalse \DeclareVoidOption{b5paper}{\@colorclass@bfivepapertrue} @@ -39,6 +44,18 @@ \if@colorclass@draft \@colorclass@fasttrue \fi +\if@colorclass@palatino + \@colorclass@customfonttrue +\fi +\if@colorclass@times + \@colorclass@customfonttrue +\fi +\if@colorclass@garamond + \@colorclass@customfonttrue +\fi +\if@colorclass@biolinum + \@colorclass@customfonttrue +\fi %%================================ %% Page layout @@ -89,13 +106,68 @@ \RequirePackage[T1]{fontenc} \RequirePackage{inputenc} \fi +\if@colorclass@customfont\else \RequirePackage{mathpazo} \RequirePackage{newpxtext} +\fi \RequirePackage{amssymb} +\let\colorist@sffamily\sffamily +\let\colorist@textsc\textsc + +\if@colorclass@palatino + \RequirePackage{amssymb} + \RequirePackage{mathpazo} + \PassOptionsToPackage{defaultsups}{newpxtext} + \RequirePackage{newpxtext} + \RequirePackage{newpxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.07}} +\fi + +\if@colorclass@times + \RequirePackage{amssymb} + \PassOptionsToPackage{defaultsups}{newtxtext} + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.00}} + \let\colorist@textsc\relax +\fi + +\if@colorclass@garamond + \RequirePackage{amssymb} + \PassOptionsToPackage{lining}{ebgaramond} + \RequirePackage{ebgaramond-maths} + \RequirePackage{ebgaramond} + % \RequirePackage{garamondlibre} + \PJLsetlinespacing{\setstretch{1.00}} + \let\colorist@textsc\relax +\fi + +\if@colorclass@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 |