[latex3-commits] [latex3/latex2e] develop: Promote `\NewDocumentCommand` in a usrguide example (d914b237)
github at latex-project.org
github at latex-project.org
Tue Nov 28 22:37:26 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/d914b23789f0960dcfbfcd72539b4108dff836ab
>---------------------------------------------------------------
commit d914b23789f0960dcfbfcd72539b4108dff836ab
Author: Yukai Chou <muzimuzhi at gmail.com>
Date: Thu Oct 26 02:42:22 2023 +0800
Promote `\NewDocumentCommand` in a usrguide example
>---------------------------------------------------------------
d914b23789f0960dcfbfcd72539b4108dff836ab
base/doc/usrguide.tex | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/base/doc/usrguide.tex b/base/doc/usrguide.tex
index 69428d96..81a75f08 100644
--- a/base/doc/usrguide.tex
+++ b/base/doc/usrguide.tex
@@ -43,7 +43,7 @@
\texttt{usrguide.tex} for full details.}%
}
-\date{2023-11-09}
+\date{2023-11-28}
\NewDocumentCommand\cs{m}{\texttt{\textbackslash\detokenize{#1}}}
\NewDocumentCommand\marg{m}{\arg{#1}}
@@ -1161,7 +1161,7 @@ therefore shows the same syntax peculiars as discussed
above. Nevertheless, in practice they are usually sufficient. For
example
\begin{verbatim}
-\newcommand\calculateheight[1]{%
+\NewDocumentCommand\calculateheight{m}{%
\setlength\textheight{\dimeval{\topskip+\baselineskip*\inteval{#1-1}}}}
\end{verbatim}
sets the \cs{textheight} to the appropriate value if a page should
More information about the latex3-commits
mailing list.