[latex3-commits] [latex3/latex2e] develop: Add opt-arg to syntax of \Make...case to clsguide (#1567) (8915fa774)

github at latex-project.org github at latex-project.org
Wed Nov 27 14:57:11 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/8915fa774746457fb06902d90812714f55cb8194

>---------------------------------------------------------------

commit 8915fa774746457fb06902d90812714f55cb8194
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Wed Nov 27 21:57:11 2024 +0800

    Add opt-arg to syntax of \Make...case to clsguide (#1567)


>---------------------------------------------------------------

8915fa774746457fb06902d90812714f55cb8194
 base/changes.txt      |  4 ++++
 base/doc/clsguide.tex | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 78c788d9f..42dac8899 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
 not part of the distribution.
 ================================================================================
 
+2024-11-27  Yukai Chou  <muzimuzhi at gmail.com>
+	* clsguide.tex:
+	Add opt-arg to syntax of \Make...case
+
 2024-11-27  Joseph Wright  <Joseph.Wright at latex-project.org>
 	* usrguide.tex:
 	Add syntax of \Make...case
diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index 1bc85999a..b52563564 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -42,7 +42,7 @@
     \texttt{clsguide.tex} for full details.}%
 }
 
-\date{2024-11-14}
+\date{2024-11-27}
 
 \NewDocumentCommand\cs{m}{\texttt{\textbackslash\detokenize{#1}}}
 \NewDocumentCommand\marg{m}{\arg{#1}}
@@ -1147,16 +1147,16 @@ being used. This should be actual paper size, unlike |\textwidth| and
 \label{sec:case}
 
 \begin{decl}
-  |\MakeUppercase| \arg{text} \\
-  |\MakeLowercase| \arg{text} \\
-  |\MakeTitlecase| \arg{text}
+  |\MakeUppercase| \oarg{keyvals} \arg{text} \\
+  |\MakeLowercase| \oarg{keyvals} \arg{text} \\
+  |\MakeTitlecase| \oarg{keyvals} \arg{text}
 \end{decl}
 
 As described in \texttt{usrguide}, case changing for text should be carried out
 using the commands |\MakeUppercase|, |\MakeLowercase| and
 |\MakeTitlecase|. If you need to change the case of programmatic material, the
 team strongly suggest using the L3 programming layer commands in the
-\texttt{str} module. If you do not wish to do this, you should use the \TeX{}
+\texttt{l3str} module. If you do not wish to do this, you should use the \TeX{}
 |\uppercase| and |\lowercase| primitives \emph{in this situation only}.
 
 \subsection{Better user-defined math display environments}





More information about the latex3-commits mailing list.