summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2025-01-03 22:49:05 +0000
committerKarl Berry <karl@freefriends.org>2025-01-03 22:49:05 +0000
commit74939952b817165042226c66d28be73d16d99184 (patch)
tree73171f60bcebb33376ba0760809e9ac198c546e9 /Master/texmf-dist/doc/latex
parent5977b245317a5904f9e5213e23cf209699a4535a (diff)
scaletextbullet (3jan25)
git-svn-id: svn://tug.org/texlive/trunk@73287 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md8
-rw-r--r--Master/texmf-dist/doc/latex/scaletextbullet/README.txt2
-rw-r--r--Master/texmf-dist/doc/latex/scaletextbullet/beery.cls87
-rw-r--r--Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdfbin65951 -> 65824 bytes
-rw-r--r--Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex2
5 files changed, 61 insertions, 38 deletions
diff --git a/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md b/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
index aee88decf97..d556b3f5824 100644
--- a/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
+++ b/Master/texmf-dist/doc/latex/scaletextbullet/CHANGELOG.md
@@ -7,6 +7,14 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
## [Unreleased]
+## [v1.0.4] - 2025-01-03
+
+### Changed
+- The internal function that scales of the size of the `\textbullet` without
+ moving its vertical center now uses more accurate floating point
+ computations.
+- Code improvements.
+
## [v1.0.3] - 2024-12-09
### Changed
diff --git a/Master/texmf-dist/doc/latex/scaletextbullet/README.txt b/Master/texmf-dist/doc/latex/scaletextbullet/README.txt
index 4ef62f229c4..17cc4cf129c 100644
--- a/Master/texmf-dist/doc/latex/scaletextbullet/README.txt
+++ b/Master/texmf-dist/doc/latex/scaletextbullet/README.txt
@@ -1,6 +1,6 @@
Package: scaletextbullet -- Resize the \textbullet without changing its
vertical center
-Copyright: 2024 (c) Oliver Beery <beeryoliver@gmail.com>
+Copyright: 2024-2025 (c) Oliver Beery <beeryoliver@gmail.com>
CTAN: https://ctan.org/pkg/scaletextbullet
Repository: https://github.com/beeryoliver/scaletextbullet
License: The LaTeX Project Public License 1.3c
diff --git a/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls b/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
index 2826ed38aa0..b7e8eab98b6 100644
--- a/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
+++ b/Master/texmf-dist/doc/latex/scaletextbullet/beery.cls
@@ -4,7 +4,7 @@
\NeedsTeXFormat{LaTeX2e}[2023-11-01]
\ProvidesExplClass
{beery}
- {2024-12-09}
+ {2025-01-03}
{}
{}
@@ -43,7 +43,8 @@
\tl_const:Nn \c_beery_alphabet_tl { abcdefghijklmnopqrstuvwxyz }
\NewExpandableDocumentCommand \alphabet { } { \c_beery_alphabet_tl }
-\NewDocumentCommand \Key { m o o }
+\NewDocumentCommand \Key
+ { >{ \TrimSpaces } m >{ \TrimSpaces } o >{ \TrimSpaces } o }
{
\mode_leave_vertical:
\group_begin:
@@ -57,10 +58,12 @@
{ #1 $\,=\,$ #2 \hspace* { \fill } \hbox:n { initial $\,=\,$ #3 } }
\group_end:
}
-\NewDocumentCommand \Value { m } { \texttt {#1} }
-\NewDocumentCommand \cmd { m } { \texttt { \token_to_str:N #1 } \@ }
-\NewDocumentCommand \cs { m } { \texttt { \token_to_str:c {#1} } \@ }
-\NewDocumentCommand \marg { m }
+\NewDocumentCommand \Value { >{ \TrimSpaces } m } { \texttt {#1} }
+\NewDocumentCommand \cmd { >{ \TrimSpaces } m }
+ { \texttt { \token_to_str:N #1 } \@ }
+\NewDocumentCommand \cs { >{ \TrimSpaces } m }
+ { \texttt { \token_to_str:c {#1} } \@ }
+\NewDocumentCommand \marg { >{ \TrimSpaces } m }
{
\allowbreak
\texttt { \c_left_brace_str }
@@ -69,7 +72,7 @@
$\rangle$
\texttt { \c_right_brace_str }
}
-\NewDocumentCommand \oarg { m }
+\NewDocumentCommand \oarg { >{ \TrimSpaces } m }
{
\allowbreak
\texttt { [ }
@@ -79,16 +82,16 @@
\texttt { ] }
}
\NewDocumentCommand \sarg { } { $\langle$ \texttt {*} $\rangle$ }
-\NewDocumentCommand \meta { m }
+\NewDocumentCommand \meta { >{ \TrimSpaces } m }
{
$\langle$
{ \normalfont \itshape #1 }
$\rangle$
}
-\NewDocumentCommand \cls { m } { \textsf {#1} }
-\NewDocumentCommand \env { m } { \texttt {#1} }
-\NewDocumentCommand \pkg { m } { \textsf {#1} }
-\NewDocumentCommand \latin { m } { \textit {#1} }
+\NewDocumentCommand \cls { >{ \TrimSpaces } m } { \textsf {#1} }
+\NewDocumentCommand \env { >{ \TrimSpaces } m } { \texttt {#1} }
+\NewDocumentCommand \pkg { >{ \TrimSpaces } m } { \textsf {#1} }
+\NewDocumentCommand \latin { >{ \TrimSpaces } m } { \textit {#1} }
% PAGE STYLE
@@ -97,19 +100,28 @@
\dim_log:N \c_beery_alphabet_dim
\dim_const:Nn \c_beery_big_dim { \l_fontscale_normalsize_baselineskip_skip }
-\dim_const:Nn \c_beery_medium_dim { \c_beery_big_dim / 2 }
-\dim_const:Nn \c_beery_small_dim { \c_beery_big_dim / 4 }
+\dim_const:Nn \c_beery_medium_dim
+ { \fp_to_dim:n { \dim_to_fp:n { \c_beery_big_dim / 2 } } }
+\dim_const:Nn \c_beery_small_dim
+ { \fp_to_dim:n { \dim_to_fp:n { \c_beery_big_dim / 4 } } }
+\dim_log:N \c_beery_big_dim
+\dim_log:N \c_beery_medium_dim
+\dim_log:N \c_beery_small_dim
+
\skip_const:Nn \c_beery_big_skip
{
\c_beery_big_dim
- plus \dim_eval:n { \c_beery_big_dim / 2 }
- minus \dim_eval:n { \c_beery_big_dim / 3 }
+ plus \fp_to_dim:n { \dim_to_fp:n { \c_beery_big_dim } / 2 }
+ minus \fp_to_dim:n { \dim_to_fp:n { \c_beery_big_dim } / 3 }
}
\skip_const:Nn \c_beery_medium_skip { \c_beery_big_skip / 2 }
\skip_const:Nn \c_beery_small_skip { \c_beery_big_skip / 4 }
\skip_set_eq:NN \bigskipamount \c_beery_big_skip
\skip_set_eq:NN \medskipamount \c_beery_medium_skip
\skip_set_eq:NN \smallskipamount \c_beery_small_skip
+\skip_log:N \c_beery_big_skip
+\skip_log:N \c_beery_medium_skip
+\skip_log:N \c_beery_small_skip
\raggedbottom
\int_set:Nn \vbadness { 100 }
@@ -121,10 +133,10 @@
{
a4paper
, textwidth =
- \dim_eval:n { \fp_to_dim:n { \c_e_fp * \c_beery_alphabet_dim } }
+ \fp_to_dim:n { \c_e_fp * \dim_to_fp:n { \c_beery_alphabet_dim } }
, textheight =
- \dim_eval:n
- { \fp_to_dim:n { 1.6180 * \c_e_fp * \c_beery_alphabet_dim } }
+ \fp_to_dim:n
+ { 1.6180 * \c_e_fp * \dim_to_fp:n { \c_beery_alphabet_dim } }
, heightrounded
, centering
, headheight = \l_fontscale_footnotesize_baselineskip_skip
@@ -137,7 +149,7 @@
\RequirePackage { fancyhdr }
\pagestyle { fancy }
\fancyhf { }
-\cs_set:Npn \headrulewidth { 0pt }
+\renewcommand \headrulewidth { 0pt }
\fancyfoot [ C ]
{ \footnotesize \thepage \c_space_tl of~ \pageref { LastPage } }
@@ -145,8 +157,7 @@
\nonfrenchspacing
\linespread { 1 }
-\skip_set_eq:NN \parskip \c_beery_medium_skip
-\dim_zero:N \parindent
+\RequirePackage [ skip = \c_beery_medium_skip ] { parskip }
\RequirePackage [ raggedrightboxes ] { ragged2e }
\skip_set:Nn \RaggedRightRightskip { 0pt plus 0.5 \linewidth }
\dim_zero:N \RaggedRightParindent
@@ -170,21 +181,19 @@
\titlespacing* \section % section
{ 0pt } % indent
{
- - \parskip
- + \c_beery_big_dim
- plus \fp_eval:n { 1 / 2 * 4 } \c_beery_big_dim
- minus \fp_eval:n { 1 / 3 / 4 } \c_beery_big_dim
+ \c_beery_big_dim
+ plus \fp_to_dim:n { 1 / 2 * 4 * \dim_to_fp:n { \c_beery_big_dim } }
+ minus \fp_to_dim:n { 1 / 3 / 4 * \dim_to_fp:n { \c_beery_big_dim } }
} % before
- { - \parskip + \c_beery_medium_skip } % after
+ { \c_beery_medium_skip } % after
\titlespacing* \subsection
{ 0pt }
{
- - \parskip
- + \fp_eval:n { 4 / 3 } \c_beery_medium_dim
- plus \fp_eval:n { 1 / 2 * 4 } \c_beery_medium_dim
- minus \fp_eval:n { 1 / 3 / 4 } \c_beery_medium_dim
+ \fp_to_dim:n { 4 / 3 * \dim_to_fp:n { \c_beery_medium_dim } }
+ plus \fp_to_dim:n { 1 / 2 * 4 * \dim_to_fp:n { \c_beery_medium_dim } }
+ minus \fp_to_dim:n { 1 / 3 / 4 * \dim_to_fp:n { \c_beery_medium_dim } }
}
- { - \parskip + \c_beery_medium_skip }
+ { \c_beery_medium_skip }
\titleformat \section % section
[ block ] % shape
@@ -250,8 +259,9 @@
\renewcommand \topfraction { 1 }
\skip_set:Nn \textfloatsep
{
- \c_beery_big_dim plus \c_beery_big_dim minus
- \dim_eval:n { \c_beery_big_dim / 3 }
+ \c_beery_big_dim
+ plus \c_beery_big_dim
+ minus \fp_to_dim:n { \dim_to_fp:n { \c_beery_big_dim } / 3 }
}
\RequirePackage { tabularray }
@@ -265,10 +275,14 @@
\dim_set:Nn \footnotesep { \f@linespread \footnotesep }
\coffin_new:N \l__beery_footnote_coffin
% 1.2 = baselineskip-size-ratio
+% \f@linespread must not be empty here
\dim_const:Nn \c_beery_footnote_baselineheight_dim
{
\fp_to_dim:n
- { ( 1.2 * \f@linespread - 1 ) * \l_fontscale_footnotesize_size_dim }
+ {
+ ( 1.2 * \f@linespread - 1 )
+ * \dim_to_fp:n { \l_fontscale_footnotesize_size_dim }
+ }
}
\RenewDocumentCommand \@makefntext { +m }
{
@@ -280,7 +294,8 @@
{
\fp_to_dim:n
{
- ( 1 - \l_fontscale_footnotesize_scale_fp ) / 2 * \textwidth
+ ( 1 - \l_fontscale_footnotesize_scale_fp ) / 2
+ * \dim_to_fp:n { \textwidth }
}
}
\dim_set_eq:NN \rightmargin \leftmargin
diff --git a/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf b/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf
index 5a84b517a3f..9cfad1740d3 100644
--- a/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf
+++ b/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex b/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex
index 087ac72828e..cf98c28096c 100644
--- a/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex
+++ b/Master/texmf-dist/doc/latex/scaletextbullet/scaletextbullet.tex
@@ -16,7 +16,7 @@ Resize the \cs{textbullet} without changing its vertical center
Oliver Beery
-Version 1.0.3\quad{}9 December 2024
+Version 1.0.4\quad{}3 January 2025
\section{Introduction}