texlive[72834] Master/texmf-dist: scaletextbullet (12nov24)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 12 22:26:19 CET 2024


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

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/README.txt
    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

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md

Added: trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md	2024-11-12 21:26:18 UTC (rev 72834)
@@ -0,0 +1,20 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a
+Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
+[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [v1.0.1] - 2024-11-12
+
+### Added
+- The package now includes a CHANGELOG file.
+- Added the CTAN link to the `.sty` and README files.
+- The documentation now lists the LaTeX installation version requirements.
+
+## [v1.0.0] - 2024-11-10
+
+### Added
+- First official release to CTAN.
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/README.txt	2024-11-12 21:26:05 UTC (rev 72833)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/README.txt	2024-11-12 21:26:18 UTC (rev 72834)
@@ -1,6 +1,6 @@
 Package: scaletextbullet -- Resize the \textbullet without changing its
 vertical center
 Copyright: 2024 (c) Oliver Beery <beeryoliver at gmail.com>
-CTAN: <ADD CTAN LINK HERE>
+CTAN: https://ctan.org/pkg/scaletextbullet
 Repository: https://github.com/beeryoliver/scaletextbullet
 License: The LaTeX Project Public License 1.3c

Modified: trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
===================================================================
--- trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2024-11-12 21:26:05 UTC (rev 72833)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls	2024-11-12 21:26:18 UTC (rev 72834)
@@ -4,7 +4,7 @@
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplClass
   {beery}
-  {2024-11-10}
+  {2024-11-12}
   {}
   {}
 

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-12 21:26:05 UTC (rev 72833)
+++ trunk/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex	2024-11-12 21:26:18 UTC (rev 72834)
@@ -16,12 +16,14 @@
 
 Oliver Beery
 
-Version 1.0.0\quad{}10 November 2024
+Version 1.0.1\quad{}12 November 2024
 
 
 \section{Introduction}
 \label{sec:intro}
 
+\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.
 The \textbulletfactor{} is the ratio of the width of the \cs{textbullet}, excluding its empty space, to its width, including its empty space.
@@ -31,7 +33,17 @@
 For a solution that works only in math mode, see the linked \TeX{} Stack Exchange thread.%
 \footnote{\url{https://tex.stackexchange.com/questions/119319/how-to-correctly-shrink-the-bullets-of-itemize}}
 
+\subsection{Loading the package}
 
+\listheading{Requirements:}
+\begin{itemize}
+  \item \LaTeXe{} version 2023-11-01 or newer
+  \item \pkg{l3kernel} version 2023-10-10 or newer
+\end{itemize}
+
+You may need to ensure that your \LaTeX{} installation is up\-/to\-/date before using this package.
+
+
 \section{Commands}
 \label{sec:commands}
 
@@ -71,10 +83,9 @@
 Prints \num{15} consecutive \cs{textbullet}s with decreasing sizes.
 The \cs{textbullet}s are followed by the original \cs{textbullet} inside a framed box.
 The framed box has width equal to the \textbulletfactor{} \texttimes{} the total width of the \cs{textbullet} (this includes its empty space).
+The \textbulletfactor{} is set to the correct value when the \num{15} consecutive \cs{textbullet}s have the same vertical center and the \cs{textbullet} fits nicely inside the framed box.
 
-The \textbulletfactor{} is set to the correct value when the 15 consecutive \cs{textbullet}s have the same vertical center and the \cs{textbullet} fits nicely inside the framed box.
 
-
 \section{Application}
 \label{sec:application}
 
@@ -148,7 +159,7 @@
   \end{itemize}
 \end{multicols}
 
-Maybe the visual effect is more clear with different fonts.
+The visual effect may be more clear with different fonts.
 This example uses STIX Two Text and Source Serif 4, respectively.
 
 \begingroup

Modified: trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2024-11-12 21:26:05 UTC (rev 72833)
+++ trunk/Master/texmf-dist/tex/latex/scaletextbullet/scaletextbullet.sty	2024-11-12 21:26:18 UTC (rev 72834)
@@ -1,7 +1,7 @@
 % Package   : scaletextbullet -- Resize the \textbullet without changing its
 % vertical center
 % Copyright : 2024 (c) Oliver Beery <beeryoliver at gmail.com>
-% CTAN      : <ADD CTAN LINK HERE>
+% CTAN      : https://ctan.org/pkg/scaletextbullet
 % Repository: https://github.com/beeryoliver/scaletextbullet
 % License   : The LaTeX Project Public License 1.3c
 
@@ -9,8 +9,8 @@
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesExplPackage
   {scaletextbullet}
-  {2024-11-10}
-  {1.0.0}
+  {2024-11-12}
+  {1.0.1}
   {Resize the \noexpand\textbullet without changing its vertical center.}
 
 % l3kernel version 2023-10-10 added many 'e'-variants.
@@ -118,35 +118,6 @@
       { \__scaletextbullet_scaletextbullets:n {#2} }
       { \__scaletextbullet_scaletextbullets:nn {#1} {#2} }
   }
-\cs_new_protected:Npn \__scaletextbullet_scaletextbullets:nn #1#2
-  {
-    \fp_set:Nn  \l__scaletextbullet_tmp_fp  {#1}
-    \int_set:Nn \l__scaletextbullet_tmp_int {#2}
-    \int_compare:nNnTF \l__scaletextbullet_tmp_int > 0
-      {
-        \fp_compare:nNnTF \l__scaletextbullet_tmp_fp > \c_zero_fp
-          {
-            \__scaletextbullet_box_scale:Nn \l__scaletextbullet_tmp_box
-              { \l__scaletextbullet_tmp_fp }
-            \prg_replicate:nn { \l__scaletextbullet_tmp_int }
-              { \box_use:N \l__scaletextbullet_tmp_box }
-          }
-          {
-            \fp_compare:nNnF \l__scaletextbullet_tmp_fp = \c_zero_fp
-              {
-                \msg_error:nne { scaletextbullet } { scale-out-of-bounds }
-                  { \fp_use:N \l__scaletextbullet_tmp_fp }
-              }
-          }
-      }
-      {
-        \int_compare:nNnF \l__scaletextbullet_tmp_int = 0
-          {
-            \msg_error:nnV { scaletextbullet } { count-out-of-bounds }
-              \l__scaletextbullet_tmp_int
-          }
-      }
-  }
 \cs_new_protected:Npn \__scaletextbullet_scaletextbullets:n #1
   {
     \int_set:Nn \l__scaletextbullet_tmp_int {#1}
@@ -189,6 +160,35 @@
           }
       }
   }
+\cs_new_protected:Npn \__scaletextbullet_scaletextbullets:nn #1#2
+  {
+    \fp_set:Nn \l__scaletextbullet_tmp_fp {#1}
+    \fp_compare:nNnTF \l__scaletextbullet_tmp_fp > \c_zero_fp
+      {
+        \int_set:Nn \l__scaletextbullet_tmp_int {#2}
+        \int_compare:nNnTF \l__scaletextbullet_tmp_int > 0
+          {
+            \__scaletextbullet_box_scale:Nn \l__scaletextbullet_tmp_box
+              { \l__scaletextbullet_tmp_fp }
+            \prg_replicate:nn { \l__scaletextbullet_tmp_int }
+              { \box_use:N \l__scaletextbullet_tmp_box }
+          }
+          {
+            \int_compare:nNnF \l__scaletextbullet_tmp_int = 0
+              {
+                \msg_error:nnV { scaletextbullet } { count-out-of-bounds }
+                  \l__scaletextbullet_tmp_int
+              }
+          }
+      }
+      {
+        \fp_compare:nNnF \l__scaletextbullet_tmp_fp = \c_zero_fp
+          {
+            \msg_error:nne { scaletextbullet } { scale-out-of-bounds }
+              { \fp_use:N \l__scaletextbullet_tmp_fp }
+          }
+      }
+  }
 
 \NewDocumentCommand \scaletextbulletdebug { }
   { \mode_leave_vertical: \__scaletextbullet_debug: }



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