texlive[73083] Master/texmf-dist: fontscale (9dec24)
commits+karl at tug.org
commits+karl at tug.org
Mon Dec 9 22:13:57 CET 2024
Revision: 73083
https://tug.org/svn/texlive?view=revision&revision=73083
Author: karl
Date: 2024-12-09 22:13:57 +0100 (Mon, 09 Dec 2024)
Log Message:
-----------
fontscale (9dec24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md
trunk/Master/texmf-dist/doc/latex/fontscale/beery.cls
trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex
trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex
trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex
trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf
trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.tex
trunk/Master/texmf-dist/tex/latex/fontscale/fontscale.sty
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md 2024-12-09 21:13:57 UTC (rev 73083)
@@ -7,6 +7,12 @@
## [Unreleased]
+## [v3.0.3] - 2024-12-09
+
+### Changed
+- The documentation now displays code in a light-gray background using the
+ `tcolorbox` package. This subtle contrast enhances readability.
+
## [v3.0.2] - 2024-11-25
### Changed
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/beery.cls
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/beery.cls 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/beery.cls 2024-12-09 21:13:57 UTC (rev 73083)
@@ -4,7 +4,7 @@
\NeedsTeXFormat{LaTeX2e}[2023-11-01]
\ProvidesExplClass
{beery}
- {2024-11-25}
+ {2024-12-09}
{}
{}
@@ -21,6 +21,18 @@
\RequirePackage { csquotes }
\RequirePackage { lmodern }
+\RequirePackage { tcolorbox }
+\tcbuselibrary { breakable }
+\NewTColorBox { mydisplaycode } { }
+ {
+ size = minimal
+ , left = 2pt
+ , right = 2pt
+ , top = 2pt
+ , bottom = 2pt
+ , breakable
+ }
+
% CUSTOM MACROS
\tl_const:Nn \c_beery_alphabet_tl { abcdefghijklmnopqrstuvwxyz }
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex 2024-12-09 21:13:57 UTC (rev 73083)
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-classic.tex}[2024-11-25]
+\ProvidesFile{fontscale-table-classic.tex}[2024-12-09]
\begin{table}
\centering
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex 2024-12-09 21:13:57 UTC (rev 73083)
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-font-steps.tex}[2024-11-25]
+\ProvidesFile{fontscale-table-font-steps.tex}[2024-12-09]
\begin{table}
\centering
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex 2024-12-09 21:13:57 UTC (rev 73083)
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-musical.tex}[2024-11-25]
+\ProvidesFile{fontscale-table-musical.tex}[2024-12-09]
\begin{table}
\centering
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.tex 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/doc/latex/fontscale/fontscale.tex 2024-12-09 21:13:57 UTC (rev 73083)
@@ -14,7 +14,7 @@
Oliver Beery
-Version 3.0.2\quad{}25 November 2024
+Version 3.0.3\quad{}9 December 2024
\section{Introduction}
@@ -36,7 +36,7 @@
\item
Provides additional font size commands, including setting the font size by setting the font step or font scale and setting the font size relative to the current font size using more powerful tools than the \pkg{scalefnt} and \pkg{relsize} packages (\S\ref{subsec:fontsize}).
\item
- For \LaTeX3 programmers, this package defines public \pkg{expl3} variables that store the font step, font scale, font size, and font baselineskip of each font size command from \cs{tiny} to \cs{Huge} and the current font step, font scale, font size, and font baselineskip (\S\ref{subsec:publicvariables}).
+ For \LaTeX3 programmers, this package defines public \pkg{expl3} variables that store the font step, font scale, font size, and font baselineskip of each font size command from \cs{tiny} to \cs{Huge} and the current font step, font scale, font size, and font baselineskip (\S\ref{subsec:publicexpl3}).
\end{itemize}
\subsection{Loading the package}
@@ -114,22 +114,24 @@
The font sizes of the font size commands from \cs{tiny} to \cs{Huge} are initially set by the key \Key{typographic-scale}.
-\Key{typographic-scale}
- [%
- classic-10pt$\,\vert\,$\allowbreak
- classic-11pt$\,\vert\,$\allowbreak
- classic-12pt$\,\vert\,$\allowbreak\hspace*{1.5em}%
- musical%
- ]
- [classic-10pt]
-\newline
-\Key{classic-10pt}
-\newline
-\Key{classic-11pt}
-\newline
-\Key{classic-12pt}
-\nopagebreak\newline
-\Key{musical}
+\begin{mydisplaycode}
+ \Key{typographic-scale}
+ [%
+ classic-10pt$\,\vert\,$\allowbreak
+ classic-11pt$\,\vert\,$\allowbreak
+ classic-12pt$\,\vert\,$\allowbreak\hspace*{1.5em}%
+ musical%
+ ]
+ [classic-10pt]
+ \newline
+ \Key{classic-10pt}
+ \newline
+ \Key{classic-11pt}
+ \newline
+ \Key{classic-12pt}
+ \nopagebreak\newline
+ \Key{musical}
+\end{mydisplaycode}
The value of the key \Key{typographic-scale} must be \Value{classic-10pt}, \Value{classic-11pt}, \Value{classic-12pt}, or \Value{musical}.
The initial value is \Value{classic-10pt}.
@@ -148,11 +150,13 @@
\input{./fontscale-table-classic.tex}
-\Key{musical/base}[\meta{dimen expression}][10pt]%
-\nopagebreak\newline
-\Key{musical/ratio}[\meta{floating point expression}][2]%
-\nopagebreak\newline
-\Key{musical/notes}[\meta{integer expression}][5]
+\begin{mydisplaycode}
+ \Key{musical/base}[\meta{dimen expression}][10pt]%
+ \nopagebreak\newline
+ \Key{musical/ratio}[\meta{floating point expression}][2]%
+ \nopagebreak\newline
+ \Key{musical/notes}[\meta{integer expression}][5]
+\end{mydisplaycode}
The key \Key{typographic-scale}[musical] sets the font size of each font size command from \cs{tiny} to \cs{Huge} using a musical typographic scale.
The font sizes are calculated using the formula:%
@@ -189,8 +193,9 @@
The font baselineskips of the font size commands from \cs{tiny} to \cs{Huge} are initially set by the key \Key{baselineskip-size-ratio}.
-\Key{baselineskip-size-ratio}[\meta{floating point expression}][1.2]
-\KeepNextPar*
+\begin{mydisplaycode}
+ \Key{baselineskip-size-ratio}[\meta{floating point expression}][1.2]
+\end{mydisplaycode}
Sets the font baselineskip of each font size command from \cs{tiny} to \cs{Huge} equal to its font size \texttimes{} the result of computing the \meta{floating point expression}.
Sets the font baselineskip set by \cs{SetFontStep}, \cs{SetFontScale}, and \cs{SetFontSize} equal to the new font size \texttimes{} the result of computing the \meta{floating point expression} (\S\ref{subsec:fontsize}).
@@ -204,29 +209,35 @@
The user should take care to ensure that the lengths of the font sizes remain correctly ordered from \cs{tiny} to \cs{Huge}.
This is important for typographic and syntactic consistency.
If the font sizes are in the wrong order, \cs{fontscalesetup} will issue a warning and some package features may not work correctly.
+\pagebreak%manual
-\Key{\meta{font size command}/scale}[\meta{floating point expression}][\meta{not set}]
-\KeepNextPar*
+\begin{mydisplaycode}
+ \Key{\meta{font size command}/scale}[\meta{floating point expression}][\meta{not set}]
+\end{mydisplaycode}
Sets the font size of \meta{font size command} by setting its font scale to the result of computing the \meta{floating point expression}.
Overwrites the font size set by the key \Key{typographic-scale}.
The key \Key{normalsize\slash{}scale} is not defined.
-\Key{\meta{font size command}/size}[\meta{dimen expression}][\meta{not set}]
-\KeepNextPar*
+\begin{mydisplaycode}
+ \Key{\meta{font size command}/size}[\meta{dimen expression}][\meta{not set}]
+\end{mydisplaycode}
Sets the font size of \meta{font size command} to the value of \meta{dimen expression}, appending a default unit of \unit{pt}.
Overwrites the font size set by the keys \Key{typographic-scale} and \Key{\meta{font size command}\slash{}scale}.
-\Key{\meta{font size command}/baselineskip}[\meta{skip expression}][\meta{not set}]
-\KeepNextPar*
+\begin{mydisplaycode}
+ \Key{\meta{font size command}/baselineskip}[\meta{skip expression}][\meta{not set}]
+\end{mydisplaycode}
Sets the font baselineskip of \meta{font size command} to the value of \meta{skip expression}, appending a default unit of \unit{pt}.
Overwrites the font baselineskip set by the key \Key{baselineskip-size-ratio}.
-\Key{\meta{font size command}}[\meta{dimen expression}]
-\nopagebreak\newline
-\Key{\meta{font size command}}[\meta{dimen expression}/\meta{skip expression}]
+\begin{mydisplaycode}
+ \Key{\meta{font size command}}[\meta{dimen expression}]
+ \nopagebreak\newline
+ \Key{\meta{font size command}}[\meta{dimen expression}/\meta{skip expression}]
+\end{mydisplaycode}
Sets the keys \Key{\meta{font size command}\slash{}size}[\meta{dimen expression}] or \Key{\meta{font size command}\slash{}baselineskip}[\meta{skip expression}] in a condensed format.%
\footnote
@@ -245,8 +256,9 @@
\subsection{Setting the keys}
\label{subsec:fontscalesetup}
-\cs{fontscalesetup} \sarg{} \marg{key-value list}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{fontscalesetup} \sarg{} \marg{key-value list}
+\end{mydisplaycode}
Sets and processes the \pkg{fontscale} package keys (\S\ref{sec:keys}) in \meta{key\-/value list} and then uses \cs{normalsize}.
Adding the optional star first resets all the \pkg{fontscale} package keys to their initial values.
@@ -259,17 +271,19 @@
\subsection{Expandable font size parameters}
\label{subsec:expandable}
-\cs{CurrentFontStep}
-\nopagebreak\newline
-\cs{CurrentFontScale}
-\newline
-\cs{CurrentFontSize}
-\nopagebreak\newline
-\cs{CurrentFontBaselineskip}
+\begin{mydisplaycode}
+ \cs{CurrentFontStep}
+ \nopagebreak\newline
+ \cs{CurrentFontScale}
+ \newline
+ \cs{CurrentFontSize}
+ \nopagebreak\newline
+ \cs{CurrentFontBaselineskip}
+\end{mydisplaycode}
This package provides expandable commands that expand to the current font step, font scale, font size, or font baselineskip.
They can be used for printing or within calculations.
-These commands do not rely on the current definition of the kernel commands \cs{f at size} and \cs{f at baselineskip}; instead, they rely on public \pkg{expl3} variables that are set in the \texttt{selectfont} hook (\S\ref{subsec:publicvariables}).
+These commands do not rely on the current definition of the kernel commands \cs{f at size} and \cs{f at baselineskip}; instead, they rely on public \pkg{expl3} variables that are set in the \texttt{selectfont} hook (\S\ref{subsec:publicexpl3}).
For clarity, \cs{CurrentFontStep} will be explained in detail.
If the current font size equals the font size of any font size command from \cs{tiny} to \cs{Huge}, then \cs{CurrentFontStep} expands to the font step of that font size command (Table~\ref{table:fontsteps}).
@@ -282,8 +296,9 @@
This package provides additional font size commands for use only in special cases.
Users should prefer the standard \LaTeX{} font size commands from \cs{tiny} to \cs{Huge} for typographic and syntactic consistency.
-\cs{SetFontStep} \sarg{} \marg{floating point expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{SetFontStep} \sarg{} \marg{floating point expression}
+\end{mydisplaycode}
Sets the font size by setting the font step to the result of computing the \meta{floating point expression}.
Adding the optional star instead sets the font step equal to the current font step + the result of computing the \meta{floating point expression}.
@@ -302,8 +317,9 @@
Does nothing, except issue a warning, if used in math mode.
\end{itemize}
-\cs{SetFontScale} \sarg{} \marg{floating point expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{SetFontScale} \sarg{} \marg{floating point expression}
+\end{mydisplaycode}
Sets the font size by setting the font scale to the result of computing the \meta{floating point expression}.
Adding the optional star instead sets the font scale equal to the current font scale + the result of computing the \meta{floating point expression}.
@@ -310,8 +326,9 @@
Sets the font baselineskip equal to the new font size \texttimes{} the value of the key \Key{baselineskip-size-ratio}.
Does nothing, except issue a warning, if used in math mode.
-\cs{SetFontSize} \sarg{} \marg{dimen expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{SetFontSize} \sarg{} \marg{dimen expression}
+\end{mydisplaycode}
Sets the font size to the value of \meta{dimen expression}, appending a default unit of \unit{pt}.
Adding the optional star instead sets the font size equal to the current font size + the result of \meta{dimen expression}, appending a default unit of \unit{pt}.
@@ -318,15 +335,17 @@
Sets the font baselineskip equal to the new font size \texttimes{} the value of the key \Key{baselineskip-size-ratio}.
Does nothing, except issue a warning, if used in math mode.
-\cs{ScaleFont} \marg{floating point expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{ScaleFont} \marg{floating point expression}
+\end{mydisplaycode}
Sets the font size equal to the current font size \texttimes{} the result of computing the \meta{floating point expression}.
Sets the font baselineskip equal to the current font baselineskip \texttimes{} the result of computing the \meta{floating point expression}.
Does nothing, except issue a warning, if used in math mode.
-\cs{SetFontSizeBaselineskip} \marg{dimen expression} \marg{skip expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{SetFontSizeBaselineskip} \marg{dimen expression} \marg{skip expression}
+\end{mydisplaycode}
Sets the font size to the value of \meta{dimen expression}, appending a default unit of \unit{pt}.
Sets the font baselineskip to the value of \meta{skip expression}, appending a default unit of \unit{pt}.
@@ -335,8 +354,9 @@
\subsection{Setting only the font baselineskip}
\label{subsec:setfontbaselineskip}
-\cs{SetFontBaselineskip} \sarg{} \marg{skip expression}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{SetFontBaselineskip} \sarg{} \marg{skip expression}
+\end{mydisplaycode}
Sets the font baselineskip to the value of \meta{skip expression}, appending a default unit of \unit{pt}.
Adding the optional star instead sets the font baselineskip equal to the current font baselineskip + the result of \meta{skip expression}, appending a default unit of \unit{pt}.
@@ -349,19 +369,23 @@
The commands documented here are intended primarily for testing and debugging.
I have used them often when developing this package so I think users will find them helpful.
-\cs{PrintFontSizeParameters}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{PrintFontSizeParameters}
+\end{mydisplaycode}
Prints the current font size parameters\---the font step, font scale, font size, and font baselineskip.
The current font step will be left blank if it is undefined (as explained for \cs{CurrentFontStep} in \S\ref{subsec:expandable}).
+\pagebreak%manual
-\cs{PrintAllFontSizeParameters}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{PrintAllFontSizeParameters}
+\end{mydisplaycode}
Prints the font step, font scale, font size, and font baselineskip of each font size command from \cs{tiny} to \cs{Huge}.
-\cs{PrintSampleText} \sarg{} \marg{text}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{PrintSampleText} \sarg{} \marg{text}
+\end{mydisplaycode}
Prints \meta{text} in each font size ordered from \cs{tiny} to \cs{Huge} each followed by a paragraph break.
\meta{text} can contain \cs{par} tokens.
@@ -368,8 +392,9 @@
Adding the optional star reverses the order of the font sizes.
One useful way of printing sample text is \cs{PrintSampleText}\allowbreak\texttt{\{\cs{PrintFontSizeCommand}:\allowbreak\textvisiblespace\allowbreak\cs{PrintFontSizeParameters}\}}.
-\cs{PrintFontSizeCommand}
-\KeepNextPar*
+\begin{mydisplaycode}
+ \cs{PrintFontSizeCommand}
+\end{mydisplaycode}
Tests if the current font size equals the font size of any font size command from \cs{tiny} to \cs{Huge}.
If so, prints the name of that font size command, including the backslash character.
@@ -392,21 +417,25 @@
\cs{text_purify:n} will correctly remove the formatting commands defined by this package, including the commands documented in \S\ref{subsec:fontscalesetup}, \S\ref{subsec:fontsize}, and \S\ref{subsec:setfontbaselineskip}.
-\subsection{Public functions}
-\label{subsec:publicfunctions}
+\subsection{Public functions and variables}
+\label{subsec:publicexpl3}
This package does not define any public \pkg{expl3} functions.
-\subsection{Public variables}
-\label{subsec:publicvariables}
+This package defines some public \pkg{expl3} variables.
+They are set either by \cs{fontscalesetup} or in the \texttt{selectfont} hook.
+They should never be modified directly.
-\verb|\c_fontscale_|\meta{font size command}\verb|_step_fp|
-\nopagebreak\newline
-\verb|\l_fontscale_|\meta{font size command}\verb|_scale_fp|
-\newline
-\verb|\l_fontscale_|\meta{font size command}\verb|_size_dim|
-\nopagebreak\newline
-\verb|\l_fontscale_|\meta{font size command}\verb|_baselineskip_skip|
+\begin{mydisplaycode}
+ \ttfamily
+ \textbackslash{}c\_fontscale\_\meta{font size command}\_step\_fp
+ \nopagebreak\newline
+ \textbackslash{}l\_fontscale\_\meta{font size command}\_scale\_fp
+ \newline
+ \textbackslash{}l\_fontscale\_\meta{font size command}\_size\_dim
+ \nopagebreak\newline
+ \textbackslash{}l\_fontscale\_\meta{font size command}\_baselineskip\_skip
+\end{mydisplaycode}
Stores the font step, font scale, font size, and font baselineskip of each font size command from \cs{tiny} to \cs{Huge}.
Exception:
@@ -413,20 +442,20 @@
\cs{l_fontscale_normalsize_scale_fp} is not defined.
The font scale of \cs{normalsize} is stored in \cs{c_fontscale_normalsize_scale_fp}.
These variables, excluding the constants, are set by \cs{fontscalesetup}.
-They should never be modified directly.
-\cs{l_fontscale_step_fp}
-\nopagebreak\newline
-\cs{l_fontscale_scale_fp}
-\newline
-\cs{l_fontscale_size_dim}
-\nopagebreak\newline
-\cs{l_fontscale_baselineskip_skip}
+\begin{mydisplaycode}
+ \cs{l_fontscale_step_fp}
+ \nopagebreak\newline
+ \cs{l_fontscale_scale_fp}
+ \newline
+ \cs{l_fontscale_size_dim}
+ \nopagebreak\newline
+ \cs{l_fontscale_baselineskip_skip}
+\end{mydisplaycode}
Stores the current font step, font scale, font size, and font baselineskip.
\cs{l_fontscale_step_fp} equals \texttt{nan} (not a number) if the current font step is undefined (as explained for \cs{CurrentFontStep} in \S\ref{subsec:expandable}).
These variables are set in the \texttt{selectfont} hook.
-They should never be modified directly.
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/fontscale/fontscale.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fontscale/fontscale.sty 2024-12-09 21:13:44 UTC (rev 73082)
+++ trunk/Master/texmf-dist/tex/latex/fontscale/fontscale.sty 2024-12-09 21:13:57 UTC (rev 73083)
@@ -8,8 +8,8 @@
\NeedsTeXFormat{LaTeX2e}[2023-11-01]
\ProvidesExplPackage
{fontscale}
- {2024-11-25}
- {3.0.2}
+ {2024-12-09}
+ {3.0.3}
{A flexible interface for setting font sizes}
% l3kernel version 2023-10-10 added many 'e'-variants.
@@ -296,7 +296,7 @@
% Similar to \__fontscale_set_font_size:nn, except that it sets the font
% baselineskip equal to the new font size times the baselineskip-size-ratio.
\cs_new_protected:Npn \__fontscale_set_font_size:n #1
- { \use:e { \__fontscale_set_font_size_aux:n { \dim_to_decimal:n {#1} } } }
+ { \exp_args:Ne \__fontscale_set_font_size_aux:n { \dim_to_decimal:n {#1} } }
\cs_new_protected:Npn \__fontscale_set_font_size_aux:n #1
{
\dim_compare:nNnTF { #1 pt } > \c_zero_dim
@@ -385,13 +385,19 @@
\dim_new:N \l__fontscale_musical_base_dim
\int_new:N \l__fontscale_musical_notes_int
-\cs_new_protected:Npn \__fontscale_keys_code_name:n #1
+\cs_new_protected:Npn \__fontscale_keys_code_name:
{
- \tl_if_in:nnTF {#1} { / }
- { \__fontscale_keys_code_name_split:ww #1 \q_stop }
- { \tl_set:cn { l__fontscale_ \l_keys_key_str _size_tl } {#1} }
+ \tl_if_in:NnTF \l_keys_value_tl { / }
+ {
+ \exp_last_unbraced:NV \__fontscale_keys_code_name:ww \l_keys_value_tl
+ \q_stop
+ }
+ {
+ \tl_set_eq:cN { l__fontscale_ \l_keys_key_str _size_tl }
+ \l_keys_value_tl
+ }
}
-\cs_new_protected:Npn \__fontscale_keys_code_name_split:ww #1 / #2 \q_stop
+\cs_new_protected:Npn \__fontscale_keys_code_name:ww #1 / #2 \q_stop
{
\tl_set:cn { l__fontscale_ \l_keys_key_str _size_tl } {#1}
\tl_set:cn { l__fontscale_ \l_keys_key_str _baselineskip_tl } {#2}
@@ -542,34 +548,34 @@
}
\keys_define:nn { fontscale }
{
- tiny .code:n = \__fontscale_keys_code_name:n {#1}
+ tiny .code:n = \__fontscale_keys_code_name:
, tiny .value_required:n = true
- , scriptsize .code:n = \__fontscale_keys_code_name:n {#1}
+ , scriptsize .code:n = \__fontscale_keys_code_name:
, scriptsize .value_required:n = true
- , footnotesize .code:n = \__fontscale_keys_code_name:n {#1}
+ , footnotesize .code:n = \__fontscale_keys_code_name:
, footnotesize .value_required:n = true
- , small .code:n = \__fontscale_keys_code_name:n {#1}
+ , small .code:n = \__fontscale_keys_code_name:
, small .value_required:n = true
- , normalsize .code:n = \__fontscale_keys_code_name:n {#1}
+ , normalsize .code:n = \__fontscale_keys_code_name:
, normalsize .value_required:n = true
- , large .code:n = \__fontscale_keys_code_name:n {#1}
+ , large .code:n = \__fontscale_keys_code_name:
, large .value_required:n = true
- , Large .code:n = \__fontscale_keys_code_name:n {#1}
+ , Large .code:n = \__fontscale_keys_code_name:
, Large .value_required:n = true
- , LARGE .code:n = \__fontscale_keys_code_name:n {#1}
+ , LARGE .code:n = \__fontscale_keys_code_name:
, LARGE .value_required:n = true
- , huge .code:n = \__fontscale_keys_code_name:n {#1}
+ , huge .code:n = \__fontscale_keys_code_name:
, huge .value_required:n = true
- , Huge .code:n = \__fontscale_keys_code_name:n {#1}
+ , Huge .code:n = \__fontscale_keys_code_name:
, Huge .value_required:n = true
}
More information about the tex-live-commits
mailing list.