summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-10-15 20:09:24 +0000
committerKarl Berry <karl@freefriends.org>2024-10-15 20:09:24 +0000
commit97c750e02003f46c4146d28eb76ef3f21ed6d326 (patch)
tree6cf02509e907ea2fc221dd6b8a68104a4140e29f
parentd43e1ddb5d364031f98b1f76f7c1839ee0f2c552 (diff)
numbersets (15oct24)
git-svn-id: svn://tug.org/texlive/trunk@72558 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdfbin59084 -> 60136 bytes
-rw-r--r--Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex34
-rw-r--r--Master/texmf-dist/tex/latex/numbersets/numbersets.sty14
3 files changed, 34 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdf b/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdf
index 1ae9960f81e..5e6fb7ba08d 100644
--- a/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdf
+++ b/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex b/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex
index db063bc141d..32bd4c3698d 100644
--- a/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex
+++ b/Master/texmf-dist/doc/latex/numbersets/numbersets-doc.tex
@@ -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 @@ when you want to create descriptive names for commonly used number sets.
\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 @@ To display the set of all quaternions that you just defined above, you would wri
\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 @@ If you have any suggestions, feature requests, or bug reports,
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}
diff --git a/Master/texmf-dist/tex/latex/numbersets/numbersets.sty b/Master/texmf-dist/tex/latex/numbersets/numbersets.sty
index a2b4f2c4e2d..cceabf53e0d 100644
--- a/Master/texmf-dist/tex/latex/numbersets/numbersets.sty
+++ b/Master/texmf-dist/tex/latex/numbersets/numbersets.sty
@@ -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