[latex3-commits] [git/LaTeX3-latex3-latex2e] gh569: Docs (67e5cb20)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 30 05:59:24 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh569
Link       : https://github.com/latex3/latex2e/commit/67e5cb201f5841f24cc15e72485d7fba27ff0ebc

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

commit 67e5cb201f5841f24cc15e72485d7fba27ff0ebc
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 30 00:59:24 2021 -0300

    Docs


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

67e5cb201f5841f24cc15e72485d7fba27ff0ebc
 base/ltcmd.dtx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index b87a612f..a3b0eaa7 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -2357,7 +2357,12 @@
   }
 %    \end{macrocode}
 %
-%   But complain when used with an environment:
+%   We can reuse most of the above to show an environment, except that
+%   we need to ensure that the proper \cs[no-index]{environment~\ldots}
+%   are passed to \cs{@@_show_command_aux:nNNn}.  Additionally, when
+%   |\ShowCommand\foo| is used (if |foo| is an environment), we show
+%   |\endfoo| as well, and when |\ShowCommand\endfoo| is used, change
+%   that to |\ShowCommand\foo| and do the same.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_show_environment:N #1
   {





More information about the latex3-commits mailing list.