summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3kernel/l3doc.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3doc.dtx')
-rw-r--r--macros/latex/contrib/l3kernel/l3doc.dtx30
1 files changed, 24 insertions, 6 deletions
diff --git a/macros/latex/contrib/l3kernel/l3doc.dtx b/macros/latex/contrib/l3kernel/l3doc.dtx
index 0dc13578a3..43a3312231 100644
--- a/macros/latex/contrib/l3kernel/l3doc.dtx
+++ b/macros/latex/contrib/l3kernel/l3doc.dtx
@@ -61,7 +61,7 @@ and all files in that bundle must be distributed together.
%</driver|class>
%
%<*driver>
-\ProvidesFile{l3doc.dtx}[2022/01/28 L3 Experimental documentation class]
+\ProvidesFile{l3doc.dtx}[2023/08/09 L3 Experimental documentation class]
\documentclass{l3doc}
\usepackage{framed}
\begin{document}
@@ -72,7 +72,7 @@ and all files in that bundle must be distributed together.
% This isn't included in the typeset documentation because it's a bit
% ugly:
%<*class>
-\ProvidesExplClass{l3doc}{2022-01-12}{}
+\ProvidesExplClass{l3doc}{2023-08-09}{}
{L3 Experimental documentation class}
%</class>
% \fi
@@ -85,7 +85,7 @@ and all files in that bundle must be distributed together.
% require you to do updates, if the class changes.}}
%
% \author{\Team}
-% \date{Released 2023-08-03}
+% \date{Released 2023-08-11}
% \maketitle
% \tableofcontents
%
@@ -2751,11 +2751,29 @@ and all files in that bundle must be distributed together.
\int_compare:nTF { \seq_count:N \g_@@_variants_seq == 1 }
{ \seq_use:Nn \g_@@_variants_seq { } }
{
+ \hbox_set:Nn \l_tmpa_box
+ { \seq_use:Nn \g__@@_variants_seq { \textrm| \nolinebreak[2] } }
\textrm(
- \seq_use:Nn \g_@@_variants_seq { \textrm| }
- \textrm)
+% \end{macrocode}
+%
+% Set long variant lists in a parbox, short lists set natural length.
+% \begin{macrocode}
+ \dim_compare:nNnTF { \box_wd:N \l_tmpa_box } > { .4\columnwidth }
+ {
+ \parbox[t]{.4\columnwidth}
+ {
+ \raggedright
+ \hbox_unpack_drop:N \l_tmpa_box
+ \textrm)
+ \bool_if:NT #2 { \@@_typeset_TF: }
+ }
+ }
+ {
+ \hbox_unpack_drop:N \l_tmpa_box
+ \textrm)
+ \bool_if:NT #2 { \@@_typeset_TF: }
+ }
}
- \bool_if:NT #2 { \@@_typeset_TF: }
\@@_typeset_expandability:
}
% \end{macrocode}