From a354f7382dae387c42d6c728e5dfcae3db140838 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 25 Jan 2021 22:08:34 +0000 Subject: fontsize (25jan21) git-svn-id: svn://tug.org/texlive/trunk@57523 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/fontsize/fontsize.sty | 55 +++++++++++------------ 1 file changed, 25 insertions(+), 30 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/fontsize/fontsize.sty b/Master/texmf-dist/tex/latex/fontsize/fontsize.sty index 50067a6de44..c52bb589082 100644 --- a/Master/texmf-dist/tex/latex/fontsize/fontsize.sty +++ b/Master/texmf-dist/tex/latex/fontsize/fontsize.sty @@ -7,7 +7,7 @@ %% fontsize.dtx (with options: `package') %% %% The 'fontsize' package -%% Copyright (C) 2020 Ivan Valbusa +%% Copyright (C) 2020-2021 Ivan Valbusa %% %% %% All rights reserved. @@ -26,7 +26,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{fontsize} - [2020/12/19 v0.3 'fontsize' package. Set main font sizes (Ivan Valbusa)] + [2021/01/25 v0.4 'fontsize' package. Set main font sizes (Ivan Valbusa)] \@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}} \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} \DeclareOptionX{cloname}[custom]{\def\@fontsizefilebase{#1}} @@ -454,11 +454,11 @@ \immediate\write\@fontfile{\string\normalsize}% \begingroup \immediate\write\@fontfile{% -\string\setlength{\string\parindent}{\the\parindent}^^J% -\string\setlength{\string\headheight}{\the\headheight}^^J% -\string\setlength{\string\smallskipamount}{\the\smallskipamount}^^J% -\string\setlength{\string\medskipamount}{\the\medskipamount}^^J% -\string\setlength{\string\bigskipamount}{\the\bigskipamount}^^J% + \string\setlength{\string\parindent}{\the\parindent}^^J% + \string\setlength{\string\headheight}{\the\headheight}^^J% + \string\setlength{\string\smallskipamount}{\the\smallskipamount}^^J% + \string\setlength{\string\medskipamount}{\the\medskipamount}^^J% + \string\setlength{\string\bigskipamount}{\the\bigskipamount}^^J% }% \endgroup \immediate\write\@fontfile{% @@ -598,31 +598,26 @@ \immediate\closeout\@fontfile } \@onlypreamble\generateclofile -\def\fs@extext{As any dedicated reader can clearly see, the Ideal of -practical reason is a representation of, as far as I know, the -things in themselves; as I have shown elsewhere, the phenomena -should only be used as a canon for our understanding. The paralogisms -of practical reason are what first give rise to the architectonic of -practical reason.} +\def\fontsize@lipsum{As any dedicated reader can clearly see, the Ideal of + practical reason is a representation of, as far as I know, the + things in themselves; as I have shown elsewhere, the phenomena + should only be used as a canon for our understanding. The paralogisms + of practical reason are what first give rise to the architectonic of + practical reason. As will be shown, reason would + thereby be made to contradict.} \chardef\fsbslash=`\\ -\newcommand{\mysize}[1]{% - \bgroup\noindent\csname#1\endcsname - The \texttt{\fsbslash #1} size is: \textbf{\csname#1\endcsname\f@size\,pt}.\\ - The \texttt{\fsbslash baselineskip} is \the\baselineskip\par\vskip2mm\egroup} -\newcommand{\mysizeex}[1]{% - \paragraph*{\csname #1\endcsname \texttt{\fsbslash #1} - \textmd{\f@size pt on \the\baselineskip}\\} - \noindent\bgroup\raggedright\csname #1\endcsname\fs@extext\par\egroup} -\newcommand{\printfontsize}[2][]{% - \section*{Settings with \texttt{\fsbslash changefontsize[#1]\{#2\}}}% - \changefontsize[#1]{#2} - \mysize{tiny}\mysize{scriptsize}\mysize{footnotesize}\mysize{small} - \mysize{normalsize}\mysize{large}\mysize{Large}\mysize{LARGE} - \mysize{huge}\mysize{Huge} - \mysizeex{tiny}\mysizeex{scriptsize}\mysizeex{footnotesize} - \mysizeex{small}\mysizeex{normalsize}\mysizeex{large}\mysizeex{Large} - \mysizeex{LARGE}\mysizeex{huge}\mysizeex{Huge} +\newcommand{\sizesamples}[1]{% + \def\nextitem{\par}% Separator + \renewcommand*{\do}[1]{\nextitem\bgroup\csname##1\endcsname + \noindent\textbf{\csname ##1\endcsname \texttt{\fsbslash ##1}: + \f@size pt on \the\baselineskip} \fontsize@lipsum\par\egroup + }% How to process each item + \docsvlist{#1}% Process list } +\newcommand{\printfontsize}[2][]{% + \changefontsize[#1]{#2} + \sizesamples{tiny,scriptsize,footnotesize,small, + normalsize,large,Large,LARGE,huge,Huge}} \endinput %% %% End of file `fontsize.sty'. -- cgit v1.2.3