texlive[73926] Master/texmf-dist: scaletextbullet (12feb25)

commits+karl at tug.org commits+karl at tug.org
Wed Feb 12 22:06:44 CET 2025


Revision: 73926
          https://tug.org/svn/texlive?view=revision&revision=73926
Author:   karl
Date:     2025-02-12 22:06:44 +0100 (Wed, 12 Feb 2025)
Log Message:
-----------
scaletextbullet (12feb25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.pdf
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.tex
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex
    trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md	2025-02-12 21:06:30 UTC (rev 73925)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md	2025-02-12 21:06:44 UTC (rev 73926)
@@ -7,6 +7,15 @@
 
 ## [Unreleased]
 
+## [v2.0.0] - 2025-02-11
+
+### Changed
+- This update includes some changes that are backwards incompatible.
+- Renamed the document commands using the recommended all-lowercase convention:
+  - `\SetTextBulletFactor` to `\settextbulletfactor`
+  - `\ScaleTextBullet` to `\scaletextbullet`
+  - `\ScaleTextBullets` to `\scaletextbullets`
+
 ## [v1.1.1] - 2025-02-06
 
 ### Changed

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2025-02-12 21:06:30 UTC (rev 73925)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2025-02-12 21:06:44 UTC (rev 73926)
@@ -1,26 +1,23 @@
-% Note: This class is designed ONLY for 'scaletextbullet.tex'. Compiled with
-% LuaTeX.
+% Note: This class is designed ONLY for 'scaletextbullet.tex'.
 
 % LOADING THE CLASS
 
-% LaTeX2e version 2023-11-01 added \IfExplAtLeastTF.
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplClass
   {beery}
-  {2025-02-06}
+  {2025-02-11}
   {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 }
   }
@@ -28,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 }
   }
 
@@ -71,9 +71,9 @@
 \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 }
+\tl_const:Nn \c_beery_pangram_tl
+  { The~ quick~ brown~ fox~ jumps~ over~ the~ lazy~ dog. }
 
-\regex_const:Nn \c__beery_ends_in_letter_regex { ^.*[A-Za-z]$ }
-
 % Scratch variables
 \box_new:N \l__beery_tmp_box
 
@@ -80,9 +80,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 }
@@ -195,10 +194,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 }
   {
@@ -360,9 +356,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* . }
@@ -370,7 +366,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
       {
@@ -396,9 +392,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
@@ -457,7 +453,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

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.tex	2025-02-12 21:06:30 UTC (rev 73925)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet-code.tex	2025-02-12 21:06:44 UTC (rev 73926)
@@ -21,7 +21,7 @@
 
 Oliver Beery
 
-Version 1.1.1\quad{}6 February 2025
+Version 2.0.0\quad{}11 February 2025
 
 \dochighinput[language=latex/latex3]{scaletextbullet.sty}%
 

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex	2025-02-12 21:06:30 UTC (rev 73925)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex	2025-02-12 21:06:44 UTC (rev 73926)
@@ -16,7 +16,7 @@
 
 Oliver Beery
 
-Version 1.1.1\quad{}6 February 2025
+Version 2.0.0\quad{}11 February 2025
 
 
 \section{Introduction}
@@ -25,7 +25,7 @@
 \subsection{About}
 
 The \pkg{scaletextbullet} package enables the user to resize the \cs{textbullet} without moving its vertical center, unlike direct usage of the \LaTeXe{} and \pkg{expl3} commands \cs{scalebox} and \cs{box_scale:}.
-This process is not fully automated\---the user must use \cs{SetTextBulletFactor} to set the \textbulletfactor{} to the correct value to display the resized \cs{textbullet} at the correct height.
+This process is not fully automated\---the user must use \cs{settextbulletfactor} to set the \textbulletfactor{} to the correct value to display the resized \cs{textbullet} at the correct height.
 The \textbulletfactor{} is the ratio of the width of the \cs{textbullet}, excluding its empty space, to its width, including its empty space.
 One way of estimating the \textbulletfactor{} is by using \cs{scaletextbulletdebug}.
 
@@ -51,7 +51,7 @@
 This syntax has the same representation as the arguments to \cs{fpeval} and \cs{inteval}, documented in \pkg{usrguide}.
 
 \begin{mydisplaycode}
-  \cs{SetTextBulletFactor} \marg{floating point expression}
+  \cs{settextbulletfactor} \marg{floating point expression}
 \end{mydisplaycode}
 
 Sets the \textbulletfactor{} to the result of computing the \meta{floating point expression}.
@@ -61,7 +61,7 @@
 \pagebreak%manual
 
 \begin{mydisplaycode}
-  \cs{ScaleTextBullet} \marg{floating point expression}
+  \cs{scaletextbullet} \marg{floating point expression}
 \end{mydisplaycode}
 
 Prints a \cs{textbullet} with its size scaled by the result of computing the \meta{floating point expression}.
@@ -69,7 +69,7 @@
 Cannot be used in math mode.
 
 \begin{mydisplaycode}
-  \cs{ScaleTextBullets} \oarg{floating point expression} \marg{integer expression}
+  \cs{scaletextbullets} \oarg{floating point expression} \marg{integer expression}
 \end{mydisplaycode}
 
 Prints a number of \cs{textbullet}s equal to the value of \meta{integer expression} with about the same total area as the original \cs{textbullet}.%
@@ -143,7 +143,7 @@
   \end{enumerate}
 \end{multicols}
 
-This package allows the user to create nice\-/looking itemized lists using \cs{ScaleTextBullets}:
+This package allows the user to create nice\-/looking itemized lists using \cs{scaletextbullets}:
 
 \begin{multicols}{2}
   \begin{itemize}
@@ -170,7 +170,7 @@
 This example uses STIX Two Text and Source Serif 4, respectively.
 
 \begingroup
-  \SetTextBulletFactor{0.54}
+  \settextbulletfactor{0.54}
   \newfontfamilystixtwo
   \begin{multicols}{2}
     \begin{itemize}
@@ -195,7 +195,7 @@
 \endgroup
 
 \begingroup
-  \SetTextBulletFactor{0.75}
+  \settextbulletfactor{0.75}
   \newfontfamilysourceseriffour
   \begin{multicols}{2}
     \begin{itemize}

Modified: trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2025-02-12 21:06:30 UTC (rev 73925)
+++ trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2025-02-12 21:06:44 UTC (rev 73926)
@@ -11,8 +11,8 @@
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplPackage
   {scaletextbullet}
-  {2025-02-06}
-  {1.1.1}
+  {2025-02-11}
+  {2.0.0}
   {Resize the \noexpand\textbullet without changing its vertical center.}
 
 % l3kernel version 2023-10-10 added many 'e'-variants.
@@ -20,7 +20,7 @@
   {
     \msg_new:nnn { scaletextbullet } { l3kernel-out-of-date }
       {
-        The~ scaletextbullet~ package~ could~ not~ load.~
+        The~ scaletextbullet~ package~ could~ not~ load. \\
         This~ package~ requires~
         L3~ programming~ layer~ version~ 2023-10-10~ or~ later.
       }
@@ -101,7 +101,7 @@
 
 %%> \section{Document commands}
 
-\NewDocumentCommand \SetTextBulletFactor { m }
+\NewDocumentCommand \settextbulletfactor { m }
   { \__scaletextbullet_set_factor:n {#1} }
 \cs_new_protected:Npn \__scaletextbullet_set_factor:n #1
   {
@@ -113,13 +113,13 @@
       }
   }
 
-\NewDocumentCommand \ScaleTextBullet { m }
+\NewDocumentCommand \scaletextbullet { m }
   {
     \mode_leave_vertical:
     \mode_if_math:TF
       {
         \msg_error:nne { scaletextbullet } { math-mode-error }
-          { \token_to_str:N \ScaleTextBullet }
+          { \token_to_str:N \scaletextbullet }
       }
       { \__scaletextbullet_scaletextbullet:n {#1} }
   }
@@ -141,13 +141,13 @@
       }
   }
 
-\NewDocumentCommand \ScaleTextBullets { o m }
+\NewDocumentCommand \scaletextbullets { o m }
   {
     \mode_leave_vertical:
     \mode_if_math:TF
       {
         \msg_error:nne { scaletextbullet } { math-mode-error }
-          { \token_to_str:N \ScaleTextBullets }
+          { \token_to_str:N \scaletextbullets }
       }
       {
         \IfNoValueTF {#1}



More information about the tex-live-commits mailing list.