summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/tabularht.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/tabularht.dtx65
1 files changed, 58 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx b/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
index 2fab037126d..1c4f840a05d 100644
--- a/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/tabularht.dtx
@@ -409,7 +409,7 @@ and the derived files
#2\@sharp###3#4%
}%
}%
- \expandafter\x\@array[#1]{#2}\@nil
+ \expandafter\x\@array[#1]{#2}\@nil % hash-ok
}
\edef\tabH@patch@array{\the\toks@}
\def\tabH@patch@@array{%
@@ -1017,19 +1017,70 @@ and the derived files
% the different directories in your installation TDS tree
% (also known as \xfile{texmf} tree):
% \begin{quote}
-% \sbox0{^^A
-% \begin{tabular}{@{}>{\ttfamily}l@{$\quad\rightarrow\quad$}>{\ttfamily}l@{}}
+% \def\t{^^A
+% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
% tabularht.sty & tex/latex/oberdiek/tabularht.sty\\
% tabularht.pdf & doc/latex/oberdiek/tabularht.pdf\\
% tabularht-example1.tex & doc/latex/oberdiek/tabularht-example1.tex\\
% tabularht-example2.tex & doc/latex/oberdiek/tabularht-example2.tex\\
% tabularht.dtx & source/latex/oberdiek/tabularht.dtx\\
% \end{tabular}^^A
-% }%
+% }^^A
+% \sbox0{\t}^^A
% \ifdim\wd0>\linewidth
-% \mbox{}\nobreak\hskip0pt minus\leftmargin
-% \usebox0
-% \nobreak\hskip0pt minus\rightmargin
+% \begingroup
+% \advance\linewidth by\leftmargin
+% \advance\linewidth by\rightmargin
+% \edef\x{\endgroup
+% \def\noexpand\lw{\the\linewidth}^^A
+% }\x
+% \def\lwbox{^^A
+% \leavevmode
+% \hbox to \linewidth{^^A
+% \kern-\leftmargin\relax
+% \hss
+% \usebox0
+% \hss
+% \kern-\rightmargin\relax
+% }^^A
+% }^^A
+% \ifdim\wd0>\lw
+% \sbox0{\small\t}^^A
+% \ifdim\wd0>\linewidth
+% \ifdim\wd0>\lw
+% \sbox0{\footnotesize\t}^^A
+% \ifdim\wd0>\linewidth
+% \ifdim\wd0>\lw
+% \sbox0{\scriptsize\t}^^A
+% \ifdim\wd0>\linewidth
+% \ifdim\wd0>\lw
+% \sbox0{\tiny\t}^^A
+% \ifdim\wd0>\linewidth
+% \lwbox
+% \else
+% \usebox0
+% \fi
+% \else
+% \lwbox
+% \fi
+% \else
+% \usebox0
+% \fi
+% \else
+% \lwbox
+% \fi
+% \else
+% \usebox0
+% \fi
+% \else
+% \lwbox
+% \fi
+% \else
+% \usebox0
+% \fi
+% \else
+% \lwbox
+% \fi
% \else
% \usebox0
% \fi