[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: l3doc interfaces to latexrelease docs (9f338c42)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Mar 19 03:42:24 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh479
Link       : https://github.com/latex3/latex2e/commit/9f338c42492837f79f6af4511d61a2a0f0b84566

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

commit 9f338c42492837f79f6af4511d61a2a0f0b84566
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Mar 18 23:42:24 2021 -0300

    l3doc interfaces to latexrelease docs


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

9f338c42492837f79f6af4511d61a2a0f0b84566
 base/latexrelease.dtx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index 05869175..a28e8ba2 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -51,6 +51,8 @@
  \providecommand{\file}[1]{\texttt{#1}}
  \providecommand{\MF}{\textsf{Metafont}}
  \providecommand{\danger}{\marginpar[\hfill\protect\Huge!!]{\protect\Huge!!\hfill}}
+ \DeclareRobustCommand\cs[2][]{\texttt{\char`\\\detokenize{#2}}}
+ \DeclareRobustCommand\pkg[1]{\textsf{#1}}
  \begin{document}
  \DocInput{latexrelease.dtx}
  \end{document}
@@ -524,8 +526,7 @@ of this package available from CTAN}
 %
 % Now create a token list to hold the list of changed commands, and
 % define a temporary macro that will loop through the command list,
-% store each in \cs{\detokenize{l_@@_restores_tl}}, save a copy, and
-% redefine each.
+% store each in \cs{l_@@_restores_tl}, save a copy, and redefine each.
 %    \begin{macrocode}
 \tl_clear_new:N \l_@@_restores_tl
 \cs_gset:Npn \@@_tmp:w #1 #2
@@ -541,7 +542,7 @@ of this package available from CTAN}
 %
 % The redefinitions below are needed because:
 % \begin{description}
-%   \def\makelabel#1{\cs{\detokenize{#1}}}
+%   \def\makelabel#1{\cs{#1}}
 %   \item[__kernel_chk_if_free_cs:N] This function is used ubiquitously
 %     in the \pkg{l3kernel} to check if a control sequence is definable,
 %     and give an error otherwise (similar to \cs{@ifdefinable}).





More information about the latex3-commits mailing list.