summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fontscale/fontscale.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-02 03:03:05 +0000
committerNorbert Preining <norbert@preining.info>2024-04-02 03:03:05 +0000
commit46dedbdc11f578dc6f23147685436d384aff9da9 (patch)
tree267c7dc51f2e41dffb346634bc2bbf953acf10b3 /macros/latex/contrib/fontscale/fontscale.sty
parent424c878a0d7e7768235612afefcc53605797eabf (diff)
CTAN sync 202404020303
Diffstat (limited to 'macros/latex/contrib/fontscale/fontscale.sty')
-rw-r--r--macros/latex/contrib/fontscale/fontscale.sty29
1 files changed, 25 insertions, 4 deletions
diff --git a/macros/latex/contrib/fontscale/fontscale.sty b/macros/latex/contrib/fontscale/fontscale.sty
index 3a6d63676a..2047438621 100644
--- a/macros/latex/contrib/fontscale/fontscale.sty
+++ b/macros/latex/contrib/fontscale/fontscale.sty
@@ -8,8 +8,8 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplPackage
{fontscale}
- {2024-03-26}
- {1.0.3}
+ {2024-03-31}
+ {1.1.0}
{A user interface for setting document font sizes}
% The 2023-10-10 l3kernel update added many 'e'-variants.
@@ -452,7 +452,7 @@
}
\cs_new_protected:Npn \__fontscale_keys_name_code_split: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 _size_tl } {#1}
\tl_set:cn { l__fontscale_ \l_keys_key_str _baselineskip_tl } {#2}
}
@@ -1284,4 +1284,25 @@
}
}
{ UNDEFINED \@ }
- } \ No newline at end of file
+ }
+
+% TEXT PURIFY
+
+\cs_new:Npn \__fontscale_text_purify_equivalent:n #1
+ {
+ \bool_lazy_all:nT
+ {
+ { \tl_if_single_p:n {#1} }
+ { \tl_if_single_token_p:n #1 }
+ { \token_if_eq_meaning_p:NN #1 * }
+ }
+ { \use_none:n }
+ }
+\text_declare_purify_equivalent:Nn \SetFontStep
+ { \__fontscale_text_purify_equivalent:n }
+\text_declare_purify_equivalent:Nn \SetFontScale
+ { \__fontscale_text_purify_equivalent:n }
+\text_declare_purify_equivalent:Nn \SetFontSize
+ { \__fontscale_text_purify_equivalent:n }
+\text_declare_purify_equivalent:Nn \ScaleFont { \use_none:n }
+\text_declare_purify_equivalent:Nn \SetFontSizeBaselineskip { \use_none:nn } \ No newline at end of file