summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fontsize
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-25 22:08:34 +0000
committerKarl Berry <karl@freefriends.org>2021-01-25 22:08:34 +0000
commita354f7382dae387c42d6c728e5dfcae3db140838 (patch)
tree171cb5937c265960894e150935f8fa864f3adc4d /Master/texmf-dist/tex/latex/fontsize
parent13c832a5e396f3b6df886d4d67176a090ca20e12 (diff)
fontsize (25jan21)
git-svn-id: svn://tug.org/texlive/trunk@57523 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontsize')
-rw-r--r--Master/texmf-dist/tex/latex/fontsize/fontsize.sty55
1 files changed, 25 insertions, 30 deletions
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
%% <ivan dot valbusa at gmail dot com>
%%
%% 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'.