diff options
author | Norbert Preining <norbert@preining.info> | 2021-02-27 03:01:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-02-27 03:01:43 +0000 |
commit | 4e6fb7c03bc033485887a99d2ffeca70ef8c0644 (patch) | |
tree | 5a337396041659a71d6da3f68367402d5c4e7dfe /macros/latex-dev/base/source2edoc.cls | |
parent | 8b1159ba65d4003e969141fb034abbdc19e27c4b (diff) |
CTAN sync 202102270301
Diffstat (limited to 'macros/latex-dev/base/source2edoc.cls')
-rw-r--r-- | macros/latex-dev/base/source2edoc.cls | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/macros/latex-dev/base/source2edoc.cls b/macros/latex-dev/base/source2edoc.cls index e06108230d..ba6acf9f80 100644 --- a/macros/latex-dev/base/source2edoc.cls +++ b/macros/latex-dev/base/source2edoc.cls @@ -2,7 +2,7 @@ % This class is buggy and needs fixing \ProvidesClass{source2edoc} - [2020/12/02 v0.2 Quick hack to typeset source2.tex + [2021/01/14 v0.2b Quick hack to typeset source2.tex (not usable for anything else and buggy -- will vanish again)!] \LoadClass{l3doc} @@ -106,6 +106,31 @@ \fi \cs_set_eq:NN \@auxout \@mainaux } + + +% change the setup here: we have a lot of long names so better run raggeded + +\cs_set_protected:Npn \__codedoc_macro_end_style:n #1 + { + \nobreak \noindent + { \raggedright\hangindent1pc \footnotesize ( \emph{#1} ) \par } + } + + +% next two declarations should move to l3doc.cls in the l3kernel eventually +% they should be ``new'' not ``set'' but to avoid getting in timing issues +% when they will be officially defined we use ``set'' here + +\cs_set_eq:NN \__codedoc_saved_detect_internals:N \__codedoc_detect_internals:N + +% maybe this change should be local so that it automatically reverts on \verb=\end{macro}= +% without the need to explicitly turn it on again. + +\cs_new_protected:Npn \InternalDetectionOff + { \cs_gset_eq:NN \__codedoc_detect_internals:N \use_none:n } +\cs_new_protected:Npn \InternalDetectionOn + { \cs_gset_eq:NN \__codedoc_detect_internals:N \__codedoc_saved_detect_internals:N } + \ExplSyntaxOff \def\partname{File} @@ -257,7 +282,7 @@ Bug reports can be opened (category \texttt{#1}) at\\% {} -%\errorstopmode +\errorstopmode \batchmode - + \endinput |