texlive[72977] Master/texmf-dist: scaletextbullet (26nov24)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 26 22:13:30 CET 2024


Revision: 72977
          https://tug.org/svn/texlive?view=revision&revision=72977
Author:   karl
Date:     2024-11-26 22:13:30 +0100 (Tue, 26 Nov 2024)
Log Message:
-----------
scaletextbullet (26nov24)

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.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	2024-11-26 21:13:20 UTC (rev 72976)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md	2024-11-26 21:13:30 UTC (rev 72977)
@@ -7,6 +7,14 @@
 
 ## [Unreleased]
 
+## [v1.0.2] - 2024-11-25
+
+### Changed
+- Keys and commands that take an integer expression as a value or argument now
+  remove the extra tokens that were not part of the integer expression.
+
+### Changed
+
 ## [v1.0.1] - 2024-11-12
 
 ### Added

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2024-11-26 21:13:20 UTC (rev 72976)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2024-11-26 21:13:30 UTC (rev 72977)
@@ -4,7 +4,7 @@
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplClass
   {beery}
-  {2024-11-12}
+  {2024-11-25}
   {}
   {}
 

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	2024-11-26 21:13:20 UTC (rev 72976)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex	2024-11-26 21:13:30 UTC (rev 72977)
@@ -16,7 +16,7 @@
 
 Oliver Beery
 
-Version 1.0.1\quad{}12 November 2024
+Version 1.0.2\quad{}25 November 2024
 
 
 \section{Introduction}

Modified: trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2024-11-26 21:13:20 UTC (rev 72976)
+++ trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2024-11-26 21:13:30 UTC (rev 72977)
@@ -9,8 +9,8 @@
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplPackage
   {scaletextbullet}
-  {2024-11-12}
-  {1.0.1}
+  {2024-11-25}
+  {1.0.2}
   {Resize the \noexpand\textbullet without changing its vertical center.}
 
 % l3kernel version 2023-10-10 added many 'e'-variants.
@@ -25,6 +25,10 @@
     \msg_critical:nn { scaletextbullet } { expl3-out-of-date }
   }
 
+% This package does not require any other packages!
+
+% SOME VARIABLES
+
 \tl_new:N \l__scaletextbullet_factor_tl
 \tl_set:Nn \l__scaletextbullet_factor_tl { 0.4 }
 
@@ -39,6 +43,24 @@
 \fp_new:N  \l__scaletextbullet_tmp_fp
 \box_new:N \l__scaletextbullet_tmp_box
 
+% SOME FUNCTIONS
+
+% Used to process user input. Sets an integer variable from an integer
+% expression and removes extra tokens.
+\cs_new_protected:Npn \__scaletextbullet_int_set_from_user:Nn #1#2
+  {
+    \afterassignment \use_none_delimit_by_q_stop:w
+      #1 = \numexpr #2 \relax
+    \q_stop
+  }
+% Argument processor
+\int_new:N \l__scaletextbullet_arg_process_int
+\cs_new_protected:Npn \__scaletextbullet_arg_process_int:n #1
+  {
+    \__scaletextbullet_int_set_from_user:Nn \l__scaletextbullet_arg_process_int
+      {#1}
+    \tl_set:NV \ProcessedArgument \l__scaletextbullet_arg_process_int
+  }
 % Lowers the \textbullet to the baseline, scales it by a factor of #2, and
 % then raises it back to the vertical center.
 % I have referenced code by the great egreg:
@@ -64,6 +86,8 @@
       }
   }
 
+% MESSAGES
+
 \msg_new:nnn { scaletextbullet } { factor-out-of-bounds }
   { Invalid~ \iow_char:N \\textbullet~ factor~ '#1'~ \msg_line_context:. }
 \msg_new:nnn { scaletextbullet } { scale-out-of-bounds }
@@ -111,7 +135,8 @@
       }
   }
 
-\NewDocumentCommand \ScaleTextBullets { o m }
+\NewDocumentCommand \ScaleTextBullets
+  { o >{ \__scaletextbullet_arg_process_int:n } m }
   {
     \mode_leave_vertical:
     \IfNoValueTF {#1}



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