texlive[72558] Master/texmf-dist: numbersets (15oct24)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 15 22:09:24 CEST 2024


Revision: 72558
          https://tug.org/svn/texlive?view=revision&revision=72558
Author:   karl
Date:     2024-10-15 22:09:24 +0200 (Tue, 15 Oct 2024)
Log Message:
-----------
numbersets (15oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdf
    trunk/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex
    trunk/Master/texmf-dist/tex/latex/numbersets/numbersets.sty

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

Modified: trunk/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex	2024-10-15 20:09:11 UTC (rev 72557)
+++ trunk/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex	2024-10-15 20:09:24 UTC (rev 72558)
@@ -23,13 +23,14 @@
 \setsansfont{TeX Gyre Heros}
 \setmonofont{Latin Modern Mono}
 \setmathfont{TeX Gyre Pagella Math}
+\usepackage{changelog}
 
 \NewDocumentCommand{\ThisPackageName}{}{\pkg{numbersets}}
 \NewDocumentCommand{\sourcecode}{m}{\texttt{#1}}
 
-\title{The \ThisPackageName{} Package}
+\title{The \ThisPackageName{} Package (v0.2.0)}
 \author{Takumi Noguchi (enunun)}
-\date{2024-10-13}
+\date{2024-10-15}
 
 \begin{document}
 
@@ -137,15 +138,15 @@
 
 \begin{function}{\DeclareNumberSetCommand}
 	\begin{syntax}
-		\cs{DeclareNumberSetCommand}\marg{name}\marg{symbol}
+		\cs{DeclareNumberSetCommand}\marg{cs}\marg{symbol}
 	\end{syntax}
-	This command defines a new number set command. The first argument \meta{name} specifies the name of the new command,
+	This command defines a new number set command. The first argument \meta{cs} specifies the control sequence for the new command,
 	while the second argument \meta{symbol} represents the symbol that will be displayed.
 \end{function}
 
 For example, to define a command for the set of all quaternions by \(\NumberSet{H}\), you would write:
 \begin{lstlisting}
-	\DeclareNumberSetCommand{Quaternions}{H}
+	\DeclareNumberSetCommand{\Quaternions}{H}
 \end{lstlisting}
 
 Once defined, you can use the new command \cs[no-index]{Quaternions} in your document to display the symbol for the set of all quaternions.
@@ -156,9 +157,10 @@
 	\Quaternions[style=bfup]
 \end{lstlisting}
 
-Internally, the definition using \cs[no-index]{DeclareNumberSetCommand}\marg{name}\marg{symbol} is equivalent to the following definition:
+Internally, the definition using \cs[no-index]{DeclareNumberSetCommand}\marg{cs}\marg{symbol}
+is equivalent to the following definition:
 \begin{lstlisting}
-	\NewDocumentCommand\|\meta{name}|
+	\NewDocumentCommand{|\meta{cs}|}
 	{o}
 	{
 		\IfValueTF{#1}
@@ -296,6 +298,24 @@
 we encourage you to submit them via the repository's issue tracker.
 This ensures that improvements and fixes are addressed efficiently. You can visit the ``Issues'' tab in the repository to create a new issue.
 
+\section{Changelog}
+
+The first is the version 0.1.0. The changelog of this package is shown in this seciton.
+
+\begin{changelog}[section=false]
+	\begin{version}[v=0.2.0, date=2024-10-15]
+		\changed
+		\item Modified the \cs[no-index]{DeclareNumberSetCommand} to accept the control sequence directly
+	\end{version}
+	\begin{version}[v=0.1.0, date=2024-10-13]
+		\added
+		\item Provided the \cs[no-index]{NumberSet} command
+		\item Provided the \cs[no-index]{DeclareNumberSetCommand} command
+		\item Provided the \cs[no-index]{DeclareNumberSetStyle} command
+		\item Provided the commands \cs[no-index]{NaturalNumbers}, \cs[no-index]{Integers}, \cs[no-index]{RationalNumbers}, \cs[no-index]{RealNumbers}, \cs[no-index]{ComplexNumbers}
+	\end{version}
+\end{changelog}
+
 \printindex
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/numbersets/numbersets.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/numbersets/numbersets.sty	2024-10-15 20:09:11 UTC (rev 72557)
+++ trunk/Master/texmf-dist/tex/latex/numbersets/numbersets.sty	2024-10-15 20:09:24 UTC (rev 72558)
@@ -1,4 +1,4 @@
-\ProvidesExplPackage{numbersets}{2024-10-13}{v0.1.0}{A package for displaying number sets with customizable typefaces}
+\ProvidesExplPackage{numbersets}{2024-10-15}{v0.2.0}{A package for displaying number sets with customizable typefaces}
 
 % List of properties to store style commands
 \prop_new:N \g_numbersets_styles_prop
@@ -87,7 +87,7 @@
 % Command to declare custom commands for set composed of numbers
 \NewDocumentCommand{\DeclareNumberSetCommand}{ m m }
 {
-	\expandafter\NewDocumentCommand\cs:w#1\cs_end:
+	\NewDocumentCommand{#1}
 	{o}
 	{
 		\IfValueTF{##1}
@@ -103,18 +103,18 @@
 % Presets for some sets composed of numbers
 
 % Natural numbers
-\DeclareNumberSetCommand{NaturalNumbers}{N}
+\DeclareNumberSetCommand{\NaturalNumbers}{N}
 
 % Integers
-\DeclareNumberSetCommand{Integers}{Z}
+\DeclareNumberSetCommand{\Integers}{Z}
 
 % Rational numbers
-\DeclareNumberSetCommand{RationalNumbers}{Q}
+\DeclareNumberSetCommand{\RationalNumbers}{Q}
 
 % Real Numbers
-\DeclareNumberSetCommand{RealNumbers}{R}
+\DeclareNumberSetCommand{\RealNumbers}{R}
 
 % Complex Numbers
-\DeclareNumberSetCommand{ComplexNumbers}{C}
+\DeclareNumberSetCommand{\ComplexNumbers}{C}
 
 \endinput
\ No newline at end of file



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