summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-12-09 21:35:48 +0000
committerKarl Berry <karl@freefriends.org>2023-12-09 21:35:48 +0000
commit4324d90d32588c8b9c23cfd1aa4fe05e3f21b0e5 (patch)
tree745233f84a691d2fe99b48bd59537cf03ce062aa /Master/texmf-dist/tex/latex
parent20c6018246c73a328973845b3e80fd3f5fbf3812 (diff)
tutodoc (9dec23)
git-svn-id: svn://tug.org/texlive/trunk@69079 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/tutodoc/tutodoc.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/tutodoc/tutodoc.sty b/Master/texmf-dist/tex/latex/tutodoc/tutodoc.sty
index 83b6c884339..cd4a6aecb39 100644
--- a/Master/texmf-dist/tex/latex/tutodoc/tutodoc.sty
+++ b/Master/texmf-dist/tex/latex/tutodoc/tutodoc.sty
@@ -9,8 +9,8 @@
\ProvidesExplPackage
{tutodoc}
- {2023-11-29} % Creation: 2023-11-29
- {1.0.0}
+ {2023-12-08} % Creation: 2023-11-29
+ {1.0.1}
{This package proposes tools for writing "human friendly" documentations of LaTeX packages.}
\RequirePackage[
@@ -344,7 +344,7 @@
% prototype::
% #1 : the name of a macro
%
-% :action: ''\tdocenv{mymacro}'' prints verb::''\mymacro''.
+% :action: ''\tdocmacro{mymacro}'' prints verb::''\mymacro''.
%%%
\NewDocumentCommand{\tdocmacro}{m}{%
\texttt{\textbackslash{}#1}%
@@ -360,10 +360,12 @@
% or something like verb::''\begin{myenv}<opt1> ... \end{myenv}'',
% the spaces being secable.
%%%
+%
+% Cleaner code from https://tex.stackexchange.com/a/703379/6880 .
\NewDocumentCommand{\tdocenv}{O{}m}{%
- \texttt{\textbackslash{}begin\{#2\}#1 %
- \!...\! %
- \textbackslash{}end\{#2\}}%
+ \texttt{\string\begin\string{#2\string}#1 %
+ \!\!...\@\!\!\! %
+ \string\end\string{#2\string}}%
}
@@ -510,9 +512,9 @@
%%%
\NewDocumentEnvironment{tdoc@showcase@basic}{m m m}{
\tdocruler{#1}{\tdocdarkcolor{#3}}
- \medskip
+ \nopagebreak\medskip\nopagebreak
}{
- \medskip
+ \nopagebreak\medskip\nopagebreak
\tdocruler{#2}{\tdocdarkcolor{#3}}
}
@@ -587,7 +589,7 @@
% :see: env.tdoc@showcase@basic ,
% env.tdoc@showcase@colorstrip
%%%
-\NewDocumentEnvironment{tdocshowcase}{O{}}{
+\NewDocumentEnvironment{tdocshowcase}{ O{} }{
\group_begin:
\keys_set:nn { tdoc/showcase } { #1 }