diff options
author | Karl Berry <karl@freefriends.org> | 2024-04-07 19:57:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-04-07 19:57:11 +0000 |
commit | d7b51429b4b44bdfc0dae16e10f936771f0d952d (patch) | |
tree | 1e890f9ebaa57f48b4203f87d409ed7cf79cc682 /Master/texmf-dist/doc/latex/fontscale | |
parent | 337e06be53a710a168d655c8252b473996838ff5 (diff) |
fontscale (7apr24)
git-svn-id: svn://tug.org/texlive/trunk@70882 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/fontscale')
-rw-r--r-- | Master/texmf-dist/doc/latex/fontscale/fontscale-manual.pdf | bin | 129635 -> 129725 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/fontscale/fontscale-manual.tex | 20 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.pdf b/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.pdf Binary files differindex 67af2fa36c5..d45ffefea94 100644 --- a/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.pdf +++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.pdf diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.tex index bb08e2eff9c..0260881adee 100644 --- a/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.tex +++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-manual.tex @@ -13,7 +13,7 @@ A user interface for setting document font sizes Oliver Beery -Version 1.1.0\quad{}31 March 2024 +Version 1.1.1\quad{}7 April 2024 \section{Introduction} @@ -75,7 +75,7 @@ If the user would like to add this functionality or perhaps other features to th \label{subsec:terminology} When using the \pkg{fontscale} package, each font size, including the standard font size commands from \cs{tiny} to \cs{Huge}, has a step, scale, size, and baselineskip. -The latter two parameters are the familiar first and second arguments to the low\-/level font command \cs{fontsize}\marg{\meta{size}}\marg{\meta{baselineskip}}. +The latter two parameters are the familiar first and second arguments to the low\-/level font command \cs{fontsize}\marg{\meta{size}}\marg{\meta{skip}}. The font scale is the relative font size; the ratio of the font size to \cs{normalsize}. The font step is the number of font size gradations from \cs{normalsize}, which has a step of \num{0}. Table~\ref{table:fontsteps} lists the font step of each font size command. @@ -183,7 +183,7 @@ The keys \Key{\meta{font size command}\slash{}baselineskip} set the font baselin \Key{\meta{font size command}}[\meta{size}] \nopagebreak\newline -\Key{\meta{font size command}}[\meta{size}/\meta{baselineskip}] +\Key{\meta{font size command}}[\meta{size}/\meta{skip}] The keys \Key{\meta{font size command}} set the keys \Key{\meta{font size command}\slash{}size} or \Key{\meta{font size command}\slash{}baselineskip} in a condensed format. The latter format resembles traditional typographic notation where the size and leading of a text can be expressed as, for example, $10/12$ or $11/13$. @@ -220,8 +220,8 @@ Caution: \cs{CurrentFontStep} will expand to nothing if the current step is unde Internally, \cs{CurrentFontStep}, \cs{CurrentFontScale}, and \cs{CurrentFontSize} use the kernel command \cs{f@size}. \cs{CurrentFontSize} expands to \texttt{f@size pt}. \cs{CurrentFontBaselineskip} expands to the kernel command \cs{f@baselineskip}. -Note that the low\-/level font command \cs{fontsize}\marg{\meta{size}}\allowbreak\marg{\meta{baselineskip}} sets \cs{f@size} before expanding its second argument. -This means that \cs{CurrentFontStep}, \cs{CurrentFontScale}, and \cs{CurrentFontSize} may need to be first expanded if used in \meta{baselineskip}. +Note that the low\-/level font command \cs{fontsize}\marg{\meta{size}}\allowbreak\marg{\meta{skip}} sets \cs{f@size} before expanding its second argument. +This means that \cs{CurrentFontStep}, \cs{CurrentFontScale}, and \cs{CurrentFontSize} may need to be first expanded if used in \meta{skip}. This package provides the command \cs{SetFontSizeBaselineskip} as an alternative to \cs{fontsize} + \cs{selectfont} that avoids this issue (\S\ref{subsec:fontsize}). \subsection{More font sizing commands} @@ -229,7 +229,7 @@ This package provides the command \cs{SetFontSizeBaselineskip} as an alternative The \pkg{fontscale} package provides the commands \cs{SetFontStep}, \cs{SetFontScale}, \cs{SetFontSize}, \cs{ScaleFont}, and \cs{SetFontSizeBaselineskip} which set the font size in different ways. The first three commands have a starred version which sets the font size relative to the current font size. -Internally, these commands all use the low\-/level font commands \cs{fontsize}\marg{\meta{size}}\allowbreak\marg{\meta{baselineskip}} and \cs{selectfont}. +Internally, these commands all use the low\-/level font commands \cs{fontsize}\marg{\meta{size}}\allowbreak\marg{\meta{skip}} and \cs{selectfont}. These commands should be used only in special cases. Generally, users should prefer the font size commands from \cs{tiny} to \cs{Huge} for typographic and syntactic consistency, although \cs{SetFontStep*}\marg{\meta{integer}} can use a font size command directly. @@ -280,15 +280,15 @@ For example, \cs{SetFontSize*}\marg{1} and \cs{SetFontSize*}\marg{-1pt} increase \cs{ScaleFont}\marg{\meta{number}} \KeepNextPar* -Scales the current font size and the current font baselineskip by \meta{number}. +Scales the current font size and the current font baselineskip by a factor of \meta{number}. \cs{ScaleFont} resembles the \cs{scalefont} command provided by the \pkg{scalefnt} package, except that it uses floating point calculations and clears the stretch and shrink components of the font baselineskip. For example, if the current font size and font baselineskip are \qty{10}{pt} and \qty{12}{pt}, using \cs{ScaleFont}\marg{0.8} will reduce them proportionally to \qty{8}{pt} and \qty{9.6}{pt}. -\cs{SetFontSizeBaselineskip}\marg{\meta{size}}\marg{\meta{baselineskip}} +\cs{SetFontSizeBaselineskip}\marg{\meta{size}}\marg{\meta{skip}} \KeepNextPar* -Sets the font size and font baselineskip to \meta{size} and \meta{baselineskip}. -Both \meta{size} and \meta{baselineskip} supply a default unit of \unit{pt}. +Sets the font size and font baselineskip to \meta{size} and \meta{skip}. +Both \meta{size} and \meta{skip} supply a default unit of \unit{pt}. \cs{SetFontSizeBaselineskip} can be used as an alternative to \cs{fontsize} + \cs{selectfont} as it avoids the issue with \cs{f@size} discussed in \S\ref{subsec:fontparameters} \vfill\pagebreak%manual |