diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib')
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLamssim.sty | 14 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLauthor.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLdate.sty | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLdraft.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLlang.sty | 60 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLlogo.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLpaper.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLthm.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/projlib/ProjLib.sty | 132 |
10 files changed, 196 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/PJLamssim.sty b/Master/texmf-dist/tex/latex/projlib/PJLamssim.sty index 1ba4da23cb5..eb404339863 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLamssim.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLamssim.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLamssim} - [2021/06/07 Simulate some features of amsart] + [2021/06/17 Simulate some features of amsart] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \ifdefined\subjclass\endinput\fi @@ -114,9 +114,15 @@ \ifx\@date\@empty\vspace{-2\baselineskip}% \else\@date\fi% \ifx\PJL@dedicatory\@empty\else% - \par\vspace{-\parskip}\bigskip% - {\itshape\PJL@dedicatory}\fi} - {}{\FAIL} + \ifx\@date\@empty\vspace{2\baselineskip}\fi% + \par\vspace{-\parskip}\bigskip% + {\itshape\PJL@dedicatory}% + \ifx\@date\@empty% + \vspace{-1.7\baselineskip}% + \vspace{-\parskip}% + \fi% + \fi% +}{}{\FAIL} \pretocmd{\maketitle}{% \ifx\PJL@keywords\@empty\else% \PJL@prethanks{{\protect\conditionalbfseries% diff --git a/Master/texmf-dist/tex/latex/projlib/PJLauthor.sty b/Master/texmf-dist/tex/latex/projlib/PJLauthor.sty index 3c9e6ba7a9b..d3bb4c16510 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLauthor.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLauthor.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLauthor} - [2021/06/07 Enhanced author information block] + [2021/06/17 Enhanced author information block] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \ifdefined\subjclass\endinput\fi diff --git a/Master/texmf-dist/tex/latex/projlib/PJLdate.sty b/Master/texmf-dist/tex/latex/projlib/PJLdate.sty index 4ec0774d982..26113c0b308 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLdate.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLdate.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLdate} - [2021/06/07 Convert yyyy-mm-dd to normal datetime format] + [2021/06/17 Convert yyyy-mm-dd to normal datetime format] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{ @@ -30,6 +30,7 @@ \if@PJLdate@draft \@PJLdate@fasttrue \fi +\DeclareDocumentCommand{\PLdate}{}{\PJLdate} \if@PJLdate@fast\let\PJLdate\relax\endinput\fi \RequirePackage{PJLlang} diff --git a/Master/texmf-dist/tex/latex/projlib/PJLdraft.sty b/Master/texmf-dist/tex/latex/projlib/PJLdraft.sty index 96958f03336..e3b17272b21 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLdraft.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLdraft.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLdraft} - [2021/06/07 Some useful macros for the draft stage] + [2021/06/17 Some useful macros for the draft stage] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{ diff --git a/Master/texmf-dist/tex/latex/projlib/PJLlang.sty b/Master/texmf-dist/tex/latex/projlib/PJLlang.sty index 013373b3d04..db1c52c769a 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLlang.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLlang.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLlang} - [2021/06/07 Multi-language configuration] + [2021/06/17 Multi-language configuration] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -177,35 +177,41 @@ \def\PJL@config@CJKlinespacing{\onehalfspacing} \newcommand{\PJLsetlinespacing}[1]{\renewcommand{\PJL@config@linespacing}{#1}} \newcommand{\PJLsetCJKlinespacing}[1]{\renewcommand{\PJL@config@CJKlinespacing}{#1}} +\def\PJL@config@parindent{\ltx@ifpackageloaded{parskip}{}{\setlength{\parindent}{1.5em}}} +\def\PJL@config@CJKparindent{\ltx@ifpackageloaded{parskip}{}{\setlength{\parindent}{2em}}} +\newcommand{\PJLsetparindent}[1]{\renewcommand{\PJL@config@parindent}{\ltx@ifpackageloaded{parskip}{}{\setlength{\parindent}{#1}}}} +\newcommand{\PJLsetCJKparindent}[1]{\renewcommand{\PJL@config@CJKparindent}{\ltx@ifpackageloaded{parskip}{}{\setlength{\parindent}{#1}}}} +\def\PJL@config@CJK{\PJL@config@CJKlinespacing\PJL@config@CJKparindent} +\def\PJL@config@Latin{\PJL@config@linespacing\PJL@config@parindent} \newcommand{\UseLanguageCORE}[1]{% \PJLlang@langconfig@common% \lowercase{\IfStrEqCase{#1}}{% - {cn}{\PJL@config@CJKlinespacing\PJLlang@langconfig@chinese}% - {chinese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@chinese}% - {schinese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@chinese}% - {simplifiedchinese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@chinese}% - {tc}{\PJL@config@CJKlinespacing\PJLlang@langconfig@tchinese}% - {tchinese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@tchinese}% - {traditionalchinese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@tchinese}% - {jp}{\PJL@config@CJKlinespacing\PJLlang@langconfig@japanese}% - {japanese}{\PJL@config@CJKlinespacing\PJLlang@langconfig@japanese}% - {en}{\PJL@config@linespacing\PJLlang@langconfig@english}% - {english}{\PJL@config@linespacing\PJLlang@langconfig@english}% - {fr}{\PJL@config@linespacing\PJLlang@langconfig@french}% - {french}{\PJL@config@linespacing\PJLlang@langconfig@french}% - {de}{\PJL@config@linespacing\PJLlang@langconfig@german}% - {ngerman}{\PJL@config@linespacing\PJLlang@langconfig@german}% - {german}{\PJL@config@linespacing\PJLlang@langconfig@german}% - {it}{\PJL@config@linespacing\PJLlang@langconfig@italian}% - {italian}{\PJL@config@linespacing\PJLlang@langconfig@italian}% - {pt}{\PJL@config@linespacing\PJLlang@langconfig@portuguese}% - {portuguese}{\PJL@config@linespacing\PJLlang@langconfig@portuguese}% - {br}{\PJL@config@linespacing\PJLlang@langconfig@brazilian}% - {brazilian}{\PJL@config@linespacing\PJLlang@langconfig@brazilian}% - {es}{\PJL@config@linespacing\PJLlang@langconfig@spanish}% - {spanish}{\PJL@config@linespacing\PJLlang@langconfig@spanish}% - {ru}{\PJL@config@linespacing\PJLlang@langconfig@russian}% - {russian}{\PJL@config@linespacing\PJLlang@langconfig@russian}% + {cn}{\PJL@config@CJK\PJLlang@langconfig@chinese}% + {chinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% + {schinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% + {simplifiedchinese}{\PJL@config@CJK\PJLlang@langconfig@chinese}% + {tc}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% + {tchinese}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% + {traditionalchinese}{\PJL@config@CJK\PJLlang@langconfig@tchinese}% + {jp}{\PJL@config@CJK\PJLlang@langconfig@japanese}% + {japanese}{\PJL@config@CJK\PJLlang@langconfig@japanese}% + {en}{\PJL@config@Latin\PJLlang@langconfig@english}% + {english}{\PJL@config@Latin\PJLlang@langconfig@english}% + {fr}{\PJL@config@Latin\PJLlang@langconfig@french}% + {french}{\PJL@config@Latin\PJLlang@langconfig@french}% + {de}{\PJL@config@Latin\PJLlang@langconfig@german}% + {ngerman}{\PJL@config@Latin\PJLlang@langconfig@german}% + {german}{\PJL@config@Latin\PJLlang@langconfig@german}% + {it}{\PJL@config@Latin\PJLlang@langconfig@italian}% + {italian}{\PJL@config@Latin\PJLlang@langconfig@italian}% + {pt}{\PJL@config@Latin\PJLlang@langconfig@portuguese}% + {portuguese}{\PJL@config@Latin\PJLlang@langconfig@portuguese}% + {br}{\PJL@config@Latin\PJLlang@langconfig@brazilian}% + {brazilian}{\PJL@config@Latin\PJLlang@langconfig@brazilian}% + {es}{\PJL@config@Latin\PJLlang@langconfig@spanish}% + {spanish}{\PJL@config@Latin\PJLlang@langconfig@spanish}% + {ru}{\PJL@config@Latin\PJLlang@langconfig@russian}% + {russian}{\PJL@config@Latin\PJLlang@langconfig@russian}% }% } \newcommand{\UseLanguage}[1]{% diff --git a/Master/texmf-dist/tex/latex/projlib/PJLlogo.sty b/Master/texmf-dist/tex/latex/projlib/PJLlogo.sty index 2ef31a5429e..47c3252b628 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLlogo.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLlogo.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLlogo} - [2021/06/07 The ProjLib logo] + [2021/06/17 The ProjLib logo] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{ diff --git a/Master/texmf-dist/tex/latex/projlib/PJLpaper.sty b/Master/texmf-dist/tex/latex/projlib/PJLpaper.sty index b7ff069e5d4..782a6fa78e3 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLpaper.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLpaper.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLpaper} - [2021/06/07 Paper style configuration] + [2021/06/17 Paper style configuration] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \RequirePackage{ifthen} @@ -86,9 +86,11 @@ \pagecolor{paper} \PJLglobalcolor{maintext} +\AtEndPreamble{ \ifdefined\tcbset% \tcbset{colupper=maintext,collower=maintext} \fi +} \endinput %% diff --git a/Master/texmf-dist/tex/latex/projlib/PJLthm.sty b/Master/texmf-dist/tex/latex/projlib/PJLthm.sty index 692afcab861..71f79c29c92 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLthm.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLthm.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLthm} - [2021/06/07 Theorem setup and configuration] + [2021/06/17 Theorem setup and configuration] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% diff --git a/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty b/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty index 3a0433a377e..9300f7da2b1 100644 --- a/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty +++ b/Master/texmf-dist/tex/latex/projlib/PJLtoolkit.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{PJLtoolkit} - [2021/06/07 Collective interface of ProjLib Toolkit] + [2021/06/17 Collective interface of ProjLib Toolkit] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{ @@ -30,6 +30,7 @@ \DeclareBoolOption[false]{amssim} \DeclareBoolOption[false]{nothms} \DeclareBoolOption[false]{regionalref} +\DeclareBoolOption[false]{useosf} \DeclareBoolOption[false]{palatino} \DeclareBoolOption[false]{times} \DeclareBoolOption[false]{garamond} @@ -75,6 +76,7 @@ \RequirePackage{newpxmath} \let\openbox\relax \PJLsetlinespacing{\setstretch{1.07}} + \if@PJLtoolkit@useosf\useosf\fi \fi \if@PJLtoolkit@times @@ -84,11 +86,14 @@ \RequirePackage{newtxmath} \let\openbox\relax \PJLsetlinespacing{\setstretch{1.00}} + \if@PJLtoolkit@useosf\useosf\fi \fi \if@PJLtoolkit@garamond \RequirePackage{amssymb} - \PassOptionsToPackage{lining}{ebgaramond} + \if@PJLtoolkit@useosf\else + \PassOptionsToPackage{lining}{ebgaramond} + \fi \RequirePackage{ebgaramond-maths} \RequirePackage{ebgaramond} % \RequirePackage{garamondlibre} @@ -100,6 +105,9 @@ % \RequirePackage{mathpazo} % \RequirePackage[sansmath]{libertinust1math} \ifPDFTeX + \if@PJLtoolkit@useosf + \PassOptionsToPackage{osf}{biolinum} + \fi \RequirePackage{biolinum} \renewcommand*\familydefault{\biolinum@family} \else @@ -108,7 +116,8 @@ \setmainfont{LinBiolinum_R.otf}[ BoldFont = LinBiolinum_RB.otf , ItalicFont = LinBiolinum_RI.otf , - BoldItalicFont = LinBiolinum_RBO.otf ] + BoldItalicFont = LinBiolinum_RBO.otf, + \if@PJLtoolkit@useosf Numbers = OldStyle\fi ] \fi \PJLsetlinespacing{\setstretch{1.05}} \RequirePackage[italic,defaultmathsizes]{mathastext} diff --git a/Master/texmf-dist/tex/latex/projlib/ProjLib.sty b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty new file mode 100644 index 00000000000..fd5e88a3912 --- /dev/null +++ b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty @@ -0,0 +1,132 @@ +%% +%% This is file `ProjLib.sty', +%% generated with the docstrip utility. + +%% Copyright (C) 2021 by Jinwen XU +%% +%% This is part of the ProjLib Toolkit. +%% +%% This work may be distributed and/or modified under the conditions of the +%% LaTeX Project Public License, either version 1.3c of this license or (at +%% your option) any later version. The latest version of this license is in +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of LaTeX version +%% 2005/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e}[2020-10-01] +\ProvidesPackage{ProjLib} + [2021/06/17 The collective interface of ProjLib toolkit] +\RequirePackage{kvoptions} +\RequirePackage{etoolbox} +\SetupKeyvalOptions{ + family = @PJLtoolkit, + prefix = @PJLtoolkit@, +} +\DeclareBoolOption[false]{draft} +\DeclareBoolOption[false]{fast} +\DeclareBoolOption[false]{author} +\DeclareBoolOption[false]{amssim} +\DeclareBoolOption[false]{nothms} +\DeclareBoolOption[false]{regionalref} +\DeclareBoolOption[false]{useosf} +\DeclareBoolOption[false]{palatino} +\DeclareBoolOption[false]{times} +\DeclareBoolOption[false]{garamond} +\DeclareBoolOption[false]{biolinum} +\ProcessKeyvalOptions*\relax +\if@PJLtoolkit@draft + \@PJLtoolkit@fasttrue +\fi +\if@PJLtoolkit@fast + \PassOptionsToPackage{fast}{PJLdate} + \PassOptionsToPackage{fast}{PJLdraft} + \PassOptionsToPackage{fast}{PJLlogo} + \PassOptionsToPackage{fast}{PJLthm} +\fi +\if@PJLtoolkit@nothms + \PassOptionsToPackage{nothms}{PJLthm} +\fi +\if@PJLtoolkit@regionalref + \PassOptionsToPackage{regionalref}{PJLthm} +\fi + +\if@PJLtoolkit@author + \RequirePackage{PJLauthor} +\fi +\if@PJLtoolkit@amssim + \RequirePackage{PJLamssim} +\fi +\RequirePackage{PJLdate} +\RequirePackage{PJLdraft} +\RequirePackage{PJLlogo} +\RequirePackage{PJLpaper} +\RequirePackage{PJLthm} + +\RequirePackage{mathtools} + +\ifdefined\PJL@font@alreadyset\else + +\if@PJLtoolkit@palatino + \RequirePackage{amssymb} + \RequirePackage{mathpazo} + \PassOptionsToPackage{defaultsups}{newpxtext} + \RequirePackage{newpxtext} + \RequirePackage{newpxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.07}} + \if@PJLtoolkit@useosf\useosf\fi +\fi + +\if@PJLtoolkit@times + \RequirePackage{amssymb} + \PassOptionsToPackage{defaultsups}{newtxtext} + \RequirePackage{newtxtext} + \RequirePackage{newtxmath} + \let\openbox\relax + \PJLsetlinespacing{\setstretch{1.00}} + \if@PJLtoolkit@useosf\useosf\fi +\fi + +\if@PJLtoolkit@garamond + \RequirePackage{amssymb} + \if@PJLtoolkit@useosf\else + \PassOptionsToPackage{lining}{ebgaramond} + \fi + \RequirePackage{ebgaramond-maths} + \RequirePackage{ebgaramond} + % \RequirePackage{garamondlibre} + \PJLsetlinespacing{\setstretch{1.00}} +\fi + +\if@PJLtoolkit@biolinum + \RequirePackage{amssymb} + % \RequirePackage{mathpazo} + % \RequirePackage[sansmath]{libertinust1math} + \ifPDFTeX + \if@PJLtoolkit@useosf + \PassOptionsToPackage{osf}{biolinum} + \fi + \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, + \if@PJLtoolkit@useosf Numbers = OldStyle\fi ] + \fi + \PJLsetlinespacing{\setstretch{1.05}} + \RequirePackage[italic,defaultmathsizes]{mathastext} +\fi + +\fi + +\RequirePackage{microtype} + +\endinput +%% +%% End of file `ProjLib.sty'. |