summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fontsize
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-04-19 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2021-04-19 03:01:15 +0000
commit272d21375e83d59014b6591075291d172bbfa007 (patch)
tree3b31e540e7fd1651b8c4704fc1c5300a29b91696 /macros/latex/contrib/fontsize
parent1cb659efaeb0261c3f5267df4f47b6ad4d673f48 (diff)
CTAN sync 202104190301
Diffstat (limited to 'macros/latex/contrib/fontsize')
-rw-r--r--macros/latex/contrib/fontsize/fontsize.dtx59
-rw-r--r--macros/latex/contrib/fontsize/fontsize.pdfbin404506 -> 405591 bytes
2 files changed, 36 insertions, 23 deletions
diff --git a/macros/latex/contrib/fontsize/fontsize.dtx b/macros/latex/contrib/fontsize/fontsize.dtx
index cde1960fad..9c9c7fdeb5 100644
--- a/macros/latex/contrib/fontsize/fontsize.dtx
+++ b/macros/latex/contrib/fontsize/fontsize.dtx
@@ -56,7 +56,7 @@ This work has the LPPL maintenance status "author-maintained".
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{fontsize}
%<*package>
- [2021/04/17 v0.8.2 'fontsize' package. Set main font sizes (Ivan Valbusa)]
+ [2021/04/18 v0.8.3 'fontsize' package. Set main font sizes (Ivan Valbusa)]
%</package>
%<*driver>
\documentclass[12pt]{ltxdoc}
@@ -268,7 +268,7 @@ This work has the LPPL maintenance status "author-maintained".
%</driver>
% \fi
%
-% \CheckSum{3067}
+% \CheckSum{3068}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -287,9 +287,11 @@ This work has the LPPL maintenance status "author-maintained".
% Right brace \} Tilde \~}
%
%
+% \changes{v0.8.3}{2021/04/18}{Corrected a bug in the \cmd{parindent} option.
+% Updated documentation.}
% \changes{v0.8.2}{2021/04/17}{New \cmd{parindent} option. Updated documentation.}
% \changes{v0.8.1}{2021/03/14}{New \cmd{sampletext} command.
- % Some lengths are now defined via \sty{xfp} package. Removed \cmd{headheight} definition. Updated documentation.}
+% Some lengths are now defined via \sty{xfp} package. Removed \cmd{headheight} definition. Updated documentation.}
% \changes{v0.8}{2021/03/04}{Corrected a bug occuring when the line spacing is grater than \SI{163.84}{pt}.}
% \changes{v0.7}{2021/02/10}{New font sizing commands \cmd{HUGE}, \cmd{HUGEr}, \cmd{HUGErr}, \cmd{HUGErrr}. Changed default name for the \file{.clo} file to \opt{fontsize}. Updated documentation.}
% \changes{v0.6}{2021/02/06}{New font sizing commands from \cmd{small} down. Updated documentation.}
@@ -451,14 +453,34 @@ This work has the LPPL maintenance status "author-maintained".
% You can use any unit recognized by \TeX\ and you can
% omit the unit as well (in which case it defaults to \texttt{pt}).
%
-%^^A \begin{footnotesize}
+% \begin{footnotesize}
%
-%^^A As \sty{fontsize} takes effect after the class is loaded, you should
-%^^A set a font size class option (if available) that comes close to the one
-%^^A loaded by the package. For example,
-%^^A if you set \opt{fontsize=12.2pt} you should load the class option \opt{12pt}.
+% Note that \sty{fontsize} does not redefine some commands of the standard
+% \textit{.clo} files such as those related to the page layout and few others.
+% For example the \opt{12pt} class option redefine \cmd{Huge} (via |\let\Huge=\huge|)
+% which is not redefined by \opt{fontsize=12pt}. For these reasons, if possible, you
+% should always set a font size class option that comes close to the one
+% loaded by the package. For example with \opt{fontsize=12.2pt}
+% you should load the \opt{12pt} class option.
%
-%^^A \end{footnotesize}
+% \end{footnotesize}
+%
+% \optitem[1.5\meta{fontsize}]{parindent}{\meta{dimen}}
+%
+% Sets the value of \cmd{parindent}. You can use any unit recognized by
+% \TeX\ but for consistency it is preferable to use a
+% font-dependent unit such as em.
+%
+% \begin{footnotesize}
+%
+% Note that the "em" is simply an arbitrary unit that comes with a particular font.
+% The value of \cmd{parindent} given in ems depends on both the font used and
+% on how or where it is set: whether before or after
+% |\begin{document}|. For this reason, don't expect \SI{1}{em} to always be equivalent
+% to the currently specified \meta{fontsize}. If you don't like this behavior,
+% use absolute units such as pt, cm or mm.
+%
+% \end{footnotesize}
%
% \optitem[fontsize]{cloname}{\meta{name}}
%
@@ -473,12 +495,6 @@ This work has the LPPL maintenance status "author-maintained".
%^^A \file{fontsize-std11pt.clo} or
%^^A \file{fontsize-std11pt.clo} will be used,
%
-% \optitem[1.5em]{parindent}{\meta{dimen}}
-%
-% Sets the value of \cmd{parindent}. You can use any unit recognized by
-% \TeX\ but for consistency it is preferable to use a
-% font-dependent unit such as em.
-%
% \end{optionlist*}
%
%^^A---------------------------------------------------------------------
@@ -607,7 +623,7 @@ This work has the LPPL maintenance status "author-maintained".
% \tcmd{HUGErrr} & \HUGErrr \fshw
% \end{tabular}
% }
-%\medskip
+%\bigskip
%
%\alert If you want these commands to work as expected, the font must be
% smoothly scalable.
@@ -754,13 +770,14 @@ This work has the LPPL maintenance status "author-maintained".
% while the \sty{xfp} package \parencite{xfp} provides the \cmd{fpeval} command
% to use instead of \cmd{dimexpr} for some size calculations.
% Only two new package options, called \opt{cloname} and \opt{parindent}
-% are defined.
+% are defined.
+%
% \baddition
% \begin{macrocode}
\@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}}
\@ifpackageloaded{xfp}{}{\RequirePackage{xfp}}
\DeclareOptionX{cloname}[fontsize]{\def\@fontsizefilebase{#1}}
-\DeclareOptionX{parindent}[1.5em]{\def\@fontsizeparindent{#1}}
+\DeclareOptionX{parindent}[1.5\@tempdimb]{\def\@fontsizeparindent{#1}}
% \end{macrocode}
% \eaddition
%
@@ -1270,11 +1287,7 @@ This work has the LPPL maintenance status "author-maintained".
% \end{macrocode}
% The KOMA files do not define \cmd{parindent} and other lengths that are
% are strictly linked to the font rather than to the dimensions of the page
-% and the text. So we first define \cmd{parindent}.
-% The value of \cmd{@fontsizeparindent} is controlled by the
-% \opt{parindent} option which defaults to
-% \SI{1.5}{em} and corresponds approximately to the values adopted
-% in the \file{bk*.clo} files for one-column documents:
+% and the text. So we first define \cmd{parindent} which defaults to 1.5\meta{fontsize}:
% \baddition
% \begin{macrocode}
\setlength\parindent{\@fontsizeparindent}%
diff --git a/macros/latex/contrib/fontsize/fontsize.pdf b/macros/latex/contrib/fontsize/fontsize.pdf
index 5afc85d3dc..7dd7a0d45b 100644
--- a/macros/latex/contrib/fontsize/fontsize.pdf
+++ b/macros/latex/contrib/fontsize/fontsize.pdf
Binary files differ