summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2025-02-14 22:32:53 +0000
committerKarl Berry <karl@freefriends.org>2025-02-14 22:32:53 +0000
commit44e655da45912714775d30721bd6430fec2f66bf (patch)
tree092c16653dbe415bc10107d47905342f9a5346ff /Master
parent1f8a76964cf006a8afd597d0ecb876dd632f4ba9 (diff)
fontscale (14feb25)
git-svn-id: svn://tug.org/texlive/trunk@73983 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md5
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/beery.cls48
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale-code.pdfbin82254 -> 81961 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale-code.tex2
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex2
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex2
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex2
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale.pdfbin110649 -> 110650 bytes
-rw-r--r--Master/texmf-dist/doc/latex/fontscale/fontscale.tex6
-rw-r--r--Master/texmf-dist/tex/latex/fontscale/fontscale.sty50
10 files changed, 59 insertions, 58 deletions
diff --git a/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md b/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md
index 7a6a402df5c..4aab77f9001 100644
--- a/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/fontscale/CHANGELOG.md
@@ -7,6 +7,11 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
+## [v3.1.2] - 2025-02-13
+
+### Fixed
+- The package now correctly requires `l3kernel` version 2023-11-09.
+
## [v3.1.1] - 2025-02-06
### Changed
diff --git a/Master/texmf-dist/doc/latex/fontscale/beery.cls b/Master/texmf-dist/doc/latex/fontscale/beery.cls
index 93c5ae77971..56f47ac2f8d 100644
--- a/Master/texmf-dist/doc/latex/fontscale/beery.cls
+++ b/Master/texmf-dist/doc/latex/fontscale/beery.cls
@@ -1,25 +1,23 @@
-% Note: This class is designed ONLY for 'fontscale.tex'. Compiled with LuaTeX.
+% Note: This class is designed ONLY for 'fontscale.tex'.
% LOADING THE CLASS
-% LaTeX2e version 2023-11-01 added \IfExplAtLeastTF.
\NeedsTeXFormat{LaTeX2e}[2023-11-01]
\ProvidesExplClass
{beery}
- {2025-02-06}
+ {2025-02-13}
{0.0.0}
{}
\prop_gput:Nnn \g_msg_module_type_prop { beery } { Class }
-% l3kernel version 2023-10-10 added many 'e'-variants.
-\IfExplAtLeastTF { 2023-10-10 } { }
+\IfExplAtLeastTF { 2023-11-09 } { }
{
\msg_new:nnn { beery } { l3kernel-out-of-date }
{
- The~ beery~ class~ could~ not~ load.~
+ The~ beery~ class~ could~ not~ load. \\
This~ class~ requires~
- L3~ programming~ layer~ version~ 2023-10-10~ or~ newer.
+ L3~ programming~ layer~ version~ 2023-11-09~ or~ newer.
}
\msg_critical:nn { beery } { l3kernel-out-of-date }
}
@@ -27,7 +25,10 @@
\sys_if_engine_luatex:F
{
\msg_new:nnn { beery } { luatex-required }
- { The~ beery~ class~ could~ not~ load.~ This~ class~ requires~ LuaTeX. }
+ {
+ The~ beery~ class~ could~ not~ load. \\
+ This~ class~ requires~ LuaTeX.
+ }
\msg_critical:nn { beery } { luatex-required }
}
@@ -65,8 +66,8 @@
\fp_const:Nn \c_beery_golden_ratio_fp { 1.6180 3398 8749 8948 }
\tl_const:Nn \c_beery_alphabet_tl { abcdefghijklmnopqrstuvwxyz }
\tl_const:Nn \c_beery_digits_tl { 0123456789 }
-
-\regex_const:Nn \c__beery_ends_in_letter_regex { ^.*[A-Za-z]$ }
+\tl_const:Nn \c_beery_pangram_tl
+ { The~ quick~ brown~ fox~ jumps~ over~ the~ lazy~ dog. }
% Scratch variables
\box_new:N \l__beery_tmp_box
@@ -74,9 +75,8 @@
% CUSTOM MACROS
\NewExpandableDocumentCommand \alphabet { } { \c_beery_alphabet_tl }
-\NewExpandableDocumentCommand \digits { } { \c_beery_digits_tl }
-\NewExpandableDocumentCommand \pangram { }
- { The~ quick~ brown~ fox~ jumps~ over~ the~ lazy~ dog. }
+\NewExpandableDocumentCommand \digits { } { \c_beery_digits_tl }
+\NewExpandableDocumentCommand \pangram { } { \c_beery_pangram_tl }
\NewDocumentCommand \Key
{ >{ \TrimSpaces } m >{ \TrimSpaces } o >{ \TrimSpaces } o }
@@ -189,10 +189,7 @@
{ \__beery_text_all_caps:nn {#1} {#2} }
}
\cs_new_protected:Npn \__beery_text_all_caps:nn #1#2
- {
- \textls [ \int_eval:n {#1} ] { \text_uppercase:n {#2} }
- \regex_match:NnT \c__beery_ends_in_letter_regex {#2} { \@ }
- }
+ { \textls [ \int_eval:n {#1} ] { \text_uppercase:n {#2} } }
\NewDocumentCommand \allsmallcaps
{ >{ \ReverseBoolean } s O { 50 } >{ \TrimSpaces } m }
{
@@ -354,9 +351,9 @@
, itemsep = \c_zero_skip
}
\setlist [ itemize , 1 ] { label = \textbullet }
-\setlist [ itemize , 2 ] { label = \ScaleTextBullets { 2 } }
-\setlist [ itemize , 3 ] { label = \ScaleTextBullets { 3 } }
-\setlist [ itemize , 4 ] { label = \ScaleTextBullets { 4 } }
+\setlist [ itemize , 2 ] { label = \scaletextbullets { 2 } }
+\setlist [ itemize , 3 ] { label = \scaletextbullets { 3 } }
+\setlist [ itemize , 4 ] { label = \scaletextbullets { 4 } }
\setlist [ enumerate , 1 ] { label = \arabic* . }
\setlist [ enumerate , 2 ] { label = \theenumi \arabic* . }
\setlist [ enumerate , 3 ] { label = \theenumii \arabic* . }
@@ -364,7 +361,7 @@
% list headings
% https://tex.stackexchange.com/questions/2644/how-to-prevent-a-page-break-before-an-itemize-list
-\NewDocumentCommand \keepnextpar { > { \ReverseBoolean } s }
+\NewDocumentCommand \keepnextpar { >{ \ReverseBoolean } s }
{
\mode_if_math:TF
{
@@ -390,9 +387,9 @@
\msg_error:nne { beery } { math-mode-error }
{ \token_to_str:N \listheading }
}
- { \__beery_typeset_list_heading:n {#1} }
+ { \__beery_list_heading:n {#1} }
}
-\cs_new_protected:Npn \__beery_typeset_list_heading:n #1
+\cs_new_protected:Npn \__beery_list_heading:n #1
{
\par
#1
@@ -451,7 +448,10 @@
% REFERENCES
-\AddToHook { shipout / lastpage } { \label { LastPage } }
+\cs_new_protected:Npn \__beery_hook_code_shipout_last_page:
+ { \label { LastPage } }
+\hook_gput_code:nnn { shipout / last page } { beery }
+ { \__beery_hook_code_shipout_last_page: }
\RequirePackage { xurl }
\RequirePackage { hyperref }
\hypersetup { bookmarksnumbered , hidelinks , linktoc = page } \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-code.pdf b/Master/texmf-dist/doc/latex/fontscale/fontscale-code.pdf
index 310c227b511..0663b4c9aa5 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale-code.pdf
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-code.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-code.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale-code.tex
index 2b7ad3cca18..119f68d32ae 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale-code.tex
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-code.tex
@@ -20,7 +20,7 @@ A flexible interface for setting font sizes
Oliver Beery
-Version 3.1.1\quad{}6 February 2025
+Version 3.1.2\quad{}13 February 2025
\dochighinput[language=latex/latex3]{fontscale.sty}
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex
index bf577009ae8..8b22405a884 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-classic.tex
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-classic.tex}[2025-02-06]
+\ProvidesFile{fontscale-table-classic.tex}[2025-02-13]
\begin{table}
\centering
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex
index 1c99b463d15..3d962aed3f5 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-font-steps.tex
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-font-steps.tex}[2025-02-06]
+\ProvidesFile{fontscale-table-font-steps.tex}[2025-02-13]
\begin{table}
\centering
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex
index 3eeb94538b4..04e5979a5cd 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale-table-musical.tex
@@ -1,4 +1,4 @@
-\ProvidesFile{fontscale-table-musical.tex}[2025-02-06]
+\ProvidesFile{fontscale-table-musical.tex}[2025-02-13]
\begin{table}
\centering
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf b/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf
index 4a409747254..be3cdcba58e 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/fontscale/fontscale.tex b/Master/texmf-dist/doc/latex/fontscale/fontscale.tex
index a6cf4cb5a33..f9ae9dd5ce6 100644
--- a/Master/texmf-dist/doc/latex/fontscale/fontscale.tex
+++ b/Master/texmf-dist/doc/latex/fontscale/fontscale.tex
@@ -14,7 +14,7 @@ A flexible interface for setting font sizes
Oliver Beery
-Version 3.1.1\quad{}6 February 2025
+Version 3.1.2\quad{}13 February 2025
\section{Introduction}
@@ -45,7 +45,7 @@ Version 3.1.1\quad{}6 February 2025
\listheading{Requirements:}
\begin{itemize}
\item \LaTeXe{} version 2023-11-01 or newer
- \item \pkg{l3kernel} version 2023-10-10 or newer
+ \item \pkg{l3kernel} version 2023-11-09 or newer
\end{itemize}
You may need to ensure that your \LaTeX{} installation is up\-/to\-/date before using this package.
@@ -146,7 +146,7 @@ The classic typographic scale consists of the traditional font sizes
\numlist{6;7;8;9;10;11;12;14;16;18;21;24;36;48;60;72}.%
\footnote{See \S3.1 of \textit{The Elements of Typographic Style} by Robert Bringhurst.}
They have been used since the sixteenth century and are the default font sizes on most computer software.
-Setting the value of the key \Key{typographic-scale} to \Key{classic-10pt}, \Key{classic-11pt}, or \Key{classic-12pt} sets the font size of each font size command from \cs{tiny} to \cs{Huge} to values based on their position in the classic typographic scale.
+Setting the value of the key \Key{typographic-scale} to \texttt{classic-10pt}, \texttt{classic-11pt}, or \texttt{classic-12pt} sets the font size of each font size command from \cs{tiny} to \cs{Huge} to values based on their position in the classic typographic scale.
The named point size\---\qtylist[list-final-separator={, or }]{10;11;12}{pt}\---is the font size of \cs{normalsize}.
The font sizes of the other font size commands are the adjacent font sizes in the classic typographic scale.
Table \ref{table:classic} displays the font size of each font size command when using a classic typographic scale.
diff --git a/Master/texmf-dist/tex/latex/fontscale/fontscale.sty b/Master/texmf-dist/tex/latex/fontscale/fontscale.sty
index 16e2dd461de..81ccdc69967 100644
--- a/Master/texmf-dist/tex/latex/fontscale/fontscale.sty
+++ b/Master/texmf-dist/tex/latex/fontscale/fontscale.sty
@@ -10,18 +10,18 @@
\NeedsTeXFormat{LaTeX2e}[2023-11-01]
\ProvidesExplPackage
{fontscale}
- {2025-02-06}
- {3.1.1}
+ {2025-02-13}
+ {3.1.2}
{A flexible interface for setting font sizes}
-% l3kernel version 2023-10-10 added many 'e'-variants.
-\IfExplAtLeastTF { 2023-10-10 } { }
+% l3kernel version 2023-11-09 added documentation for \c_nan_fp.
+\IfExplAtLeastTF { 2023-11-09 } { }
{
\msg_new:nnn { fontscale } { l3kernel-out-of-date }
{
- The~ fontscale~ package~ could~ not~ load.~
+ The~ fontscale~ package~ could~ not~ load. \\
This~ package~ requires~
- L3~ programming~ layer~ version~ 2023-10-10~ or~ newer.
+ L3~ programming~ layer~ version~ 2023-11-09~ or~ newer.
}
\msg_critical:nn { fontscale } { l3kernel-out-of-date }
}
@@ -31,32 +31,28 @@
\msg_new:nnn { fontscale } { key-musical-base-out-of-bounds }
{
Invalid~ value~ '#1'~ \msg_line_context:. \\
- The~ value~ of~ the~ key~ 'musical / base'~
- must~ be~ a~ positive~ length.
+ The~ value~ of~ the~ key~ 'musical / base'~ must~ be~ a~ positive~ length.
}
\msg_new:nnn { fontscale } { key-musical-ratio-out-of-bounds }
{
Invalid~ value~ '#1'~ \msg_line_context:. \\
- The~ value~ of~ the~ key~ 'musical / ratio'~
- must~ be~ greater~ than~ 1.
+ The~ value~ of~ the~ key~ 'musical / ratio'~ must~ be~ greater~ than~ 1.
}
\msg_new:nnn { fontscale } { key-musical-notes-out-of-bounds }
{
Invalid~ value~ '#1'~ \msg_line_context:. \\
- The~ value~ of~ the~ key~ 'musical / notes'~
- must~ be~ a~ positive~ integer.
+ The~ value~ of~ the~ key~ 'musical / notes'~ must~ be~ a~ positive~
+ integer.
}
\msg_new:nnn { fontscale } { key-font-scale-out-of-bounds }
{
- Invalid~ value~ '#1'~ \msg_line_context:. \\
- The~ value~ of~ the~ key~ '#2 / scale'~
- must~ be~ positive.
+ Invalid~ value~ '#2'~ \msg_line_context:. \\
+ The~ value~ of~ the~ key~ '#1 / scale'~ must~ be~ positive.
}
\msg_new:nnn { fontscale } { key-font-size-out-of-bounds }
{
- Invalid~ value~ '#1'~ \msg_line_context:. \\
- The~ value~ of~ the~ key~ '#2 / size'~
- must~ be~ a~ positive~ length.
+ Invalid~ value~ '#2'~ \msg_line_context:. \\
+ The~ value~ of~ the~ key~ '#1 / size'~ must~ be~ a~ positive~ length.
}
\msg_new:nnn { fontscale } { key-font-scale-overwritten }
{
@@ -192,8 +188,6 @@
% the font size equals that of \normalsize is optimized further because it is
% by far the most common case. \f@size and \f@baselineskip are not used
% elsewhere in the code.
-\hook_gput_code:nnn { selectfont } { fontscale }
- { \__fontscale_hook_code_selectfont: }
\cs_new_protected:Npn \__fontscale_hook_code_selectfont:
{
\dim_set:Nn \l_fontscale_size_dim { \f@size pt }
@@ -284,6 +278,8 @@
}
{ \fp_set_eq:NN \l_fontscale_step_fp \c_nan_fp }
}
+\hook_gput_code:nnn { selectfont } { fontscale }
+ { \__fontscale_hook_code_selectfont: }
% Used only to speed up floating point calculations.
\fp_new:N \l__fontscale_normalsize_size_fp
@@ -302,7 +298,7 @@
%%> \section{Some functions}
% Variants of l3kernel functions
-\cs_generate_variant:Nn \msg_error:nnnn { nnv , nne }
+\cs_generate_variant:Nn \msg_error:nnnn { nnnv }
% Sets a dimen/skip variable from a dimen/skip expression, appending a default
% unit 'pt', and removes extra trailing tokens, if any.
\cs_new_protected:Npn \__fontscale_dim_set_default_pt:Nn #1#2
@@ -704,8 +700,8 @@
{ \l__fontscale_normalsize_size_tl }
\dim_compare:nNnF \l_fontscale_normalsize_size_dim > \c_zero_dim
{
- \msg_error:nnVn { fontscale } { key-font-size-out-of-bounds }
- \l_fontscale_normalsize_size_dim { normalsize }
+ \msg_error:nnnV { fontscale } { key-font-size-out-of-bounds }
+ { normalsize } \l_fontscale_normalsize_size_dim
\prg_break:
}
}
@@ -842,8 +838,8 @@
{
\tl_map_break:n
{
- \msg_error:nnen { fontscale } { key-font-scale-out-of-bounds }
- { \fp_eval:n { \use:c { l__fontscale_#1_scale_tl } } } {#1}
+ \msg_error:nnne { fontscale } { key-font-scale-out-of-bounds }
+ {#1} { \fp_eval:n { \use:c { l__fontscale_#1_scale_tl } } }
\prg_break:
}
}
@@ -857,8 +853,8 @@
{
\tl_map_break:n
{
- \msg_error:nnvn { fontscale } { key-font-size-out-of-bounds }
- { l_fontscale_#1_size_dim } {#1}
+ \msg_error:nnnv { fontscale } { key-font-size-out-of-bounds }
+ {#1} { l_fontscale_#1_size_dim }
\prg_break:
}
}