diff options
author | Karl Berry <karl@freefriends.org> | 2021-06-06 20:51:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-06-06 20:51:12 +0000 |
commit | 942ca5d1394c2359a0db338380242273c66f109e (patch) | |
tree | 97a54a3089084fccfae95a4a18a52affa3775690 /Master/texmf-dist/tex/latex/beaulivre | |
parent | 7b2fd1316c3a4fcb2b48aac74298202b16bdbcb6 (diff) |
beaulivre (6jun21)
git-svn-id: svn://tug.org/texlive/trunk@59496 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beaulivre')
-rw-r--r-- | Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls | 83 |
1 files changed, 79 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls b/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls index e1fa8d3e8b2..68555495d24 100644 --- a/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls +++ b/Master/texmf-dist/tex/latex/beaulivre/beaulivre.cls @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesClass{beaulivre} - [2021/05/24 A colorful book style] + [2021/06/07 A colorful book style] \def\colorclass@baseclass{book} \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 @@ -85,8 +102,10 @@ %% Fonts %%================================ %% Math fonts in fast mode -\if@colorclass@fast - \RequirePackage{mathpazo} +\if@colorclass@customfont\else + \if@colorclass@fast + \RequirePackage{mathpazo} + \fi \fi %% English fonts @@ -114,6 +133,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 , @@ -163,6 +183,7 @@ } %% Math font +\if@colorclass@customfont\else \if@colorclass@fast \RequirePackage{amssymb} \else @@ -212,10 +233,64 @@ \setmathfont[range=bfcal, Scale=MatchUppercase, Alternate]{Asana-Math.otf} }{} \fi +\fi + +\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@sffamily\relax +\fi + +\if@colorclass@garamond + \RequirePackage{amssymb} + \PassOptionsToPackage{lining}{ebgaramond} + \RequirePackage{ebgaramond-maths} + \RequirePackage{ebgaramond} + % \RequirePackage{garamondlibre} + \PJLsetlinespacing{\setstretch{1.00}} + \let\colorist@sffamily\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 |