diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/txtbabel.def')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel/txtbabel.def | 141 |
1 files changed, 29 insertions, 112 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/txtbabel.def b/Master/texmf-dist/tex/generic/babel/txtbabel.def index 86e5a95d83d..a11bf27df31 100644 --- a/Master/texmf-dist/tex/generic/babel/txtbabel.def +++ b/Master/texmf-dist/tex/generic/babel/txtbabel.def @@ -58,122 +58,39 @@ \parfillskip\bbl@endskip} \fi \IfBabelLayout{lists} - {\def\list#1#2{% - \ifnum \@listdepth >5\relax - \@toodeep - \else - \global\advance\@listdepth\@ne - \fi - \rightmargin\z@ - \listparindent\z@ - \itemindent\z@ - \csname @list\romannumeral\the\@listdepth\endcsname - \def\@itemlabel{#1}% - \let\makelabel\@mklab - \@nmbrlistfalse - #2\relax - \@trivlist - \parskip\parsep - \parindent\listparindent - \advance\linewidth-\rightmargin - \advance\linewidth-\leftmargin - \advance\@totalleftmargin - \ifcase\bbl@thepardir\leftmargin\else\rightmargin\fi - \parshape\@ne\@totalleftmargin\linewidth - \ignorespaces}% - \ifcase\bbl@engine - \def\labelenumii{)\theenumii(}% - \def\p@enumiii{\p@enumii)\theenumii(}% - \fi - \def\@verbatim{% - \trivlist \item\relax - \if@minipage\else\vskip\parskip\fi - \bbl@startskip\textwidth - \advance\bbl@startskip-\linewidth - \bbl@endskip\z@skip - \parindent\z@ - \parfillskip\@flushglue - \parskip\z@skip - \@@par - \language\l@nohyphenation - \@tempswafalse - \def\par{% - \if@tempswa - \leavevmode\null - \@@par\penalty\interlinepenalty - \else - \@tempswatrue - \ifhmode\@@par\penalty\interlinepenalty\fi - \fi}% - \let\do\@makeother \dospecials - \obeylines \verbatim@font \@noligs - \everypar\expandafter{\the\everypar\unpenalty}}} + {\bbl@sreplace\list + {\@totalleftmargin\leftmargin}{\@totalleftmargin\bbl@listleftmargin}% + \def\bbl@listleftmargin{% + \ifcase\bbl@thepardir\leftmargin\else\rightmargin\fi}% + \ifcase\bbl@engine + \def\labelenumii{)\theenumii(}% pdftex doesn't reverse () + \def\p@enumiii{\p@enumii)\theenumii(}% + \fi + \bbl@sreplace\@verbatim + {\leftskip\@totalleftmargin}% + {\bbl@startskip\textwidth + \advance\bbl@startskip-\linewidth}% + \bbl@sreplace\@verbatim + {\rightskip\z@skip}% + {\bbl@endskip\z@skip}}% {} \IfBabelLayout{contents} - {\def\@dottedtocline#1#2#3#4#5{% - \ifnum#1>\c@tocdepth\else - \vskip \z@ \@plus.2\p@ - {\bbl@startskip#2\relax - \bbl@endskip\@tocrmarg - \parfillskip-\bbl@endskip - \parindent#2\relax - \@afterindenttrue - \interlinepenalty\@M - \leavevmode - \@tempdima#3\relax - \advance\bbl@startskip\@tempdima - \null\nobreak\hskip-\bbl@startskip - {#4}\nobreak - \leaders\hbox{% - $\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}% - \hfill\nobreak - \hb@xt@\@pnumwidth{\hfil\normalfont\normalcolor#5}% - \par}% - \fi}} + {\bbl@sreplace\@dottedtocline{\leftskip}{\bbl@startskip}% + \bbl@sreplace\@dottedtocline{\rightskip}{\bbl@endskip}} {} \IfBabelLayout{columns} - {\def\@outputdblcol{% - \if@firstcolumn - \global\@firstcolumnfalse - \global\setbox\@leftcolumn\copy\@outputbox - \splitmaxdepth\maxdimen - \vbadness\maxdimen - \setbox\@outputbox\vbox{\unvbox\@outputbox\unskip}% - \setbox\@outputbox\vsplit\@outputbox to\maxdimen - \toks@\expandafter{\topmark}% - \xdef\@firstcoltopmark{\the\toks@}% - \toks@\expandafter{\splitfirstmark}% - \xdef\@firstcolfirstmark{\the\toks@}% - \ifx\@firstcolfirstmark\@empty - \global\let\@setmarks\relax - \else - \gdef\@setmarks{% - \let\firstmark\@firstcolfirstmark - \let\topmark\@firstcoltopmark}% - \fi - \else - \global\@firstcolumntrue - \setbox\@outputbox\vbox{% - \hb@xt@\textwidth{% - \hskip\columnwidth - \hfil - {\normalcolor\vrule \@width\columnseprule}% - \hfil - \hb@xt@\columnwidth{\box\@leftcolumn \hss}% - \hskip-\textwidth - \hb@xt@\columnwidth{\box\@outputbox \hss}% - \hskip\columnsep - \hskip\columnwidth}}% - \@combinedblfloats - \@setmarks - \@outputpage - \begingroup - \@dblfloatplacement - \@startdblcolumn - \@whilesw\if@fcolmade \fi{\@outputpage - \@startdblcolumn}% - \endgroup - \fi}}% + {\bbl@sreplace\@outputdblcol{\hb@xt@\textwidth}{\bbl@outputhbox}% + \def\bbl@outputhbox#1{% + \hb@xt@\textwidth{% + \hskip\columnwidth + \hfil + {\normalcolor\vrule \@width\columnseprule}% + \hfil + \hb@xt@\columnwidth{\box\@leftcolumn \hss}% + \hskip-\textwidth + \hb@xt@\columnwidth{\box\@outputbox \hss}% + \hskip\columnsep + \hskip\columnwidth}}}% {} \bbl@trace{Bidi footnotes} \ifx\bbl@beforeforeign\leavevmode |