diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex b/Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex index 9a7322bcf4e..5210c585b78 100644 --- a/Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex +++ b/Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex @@ -1,20 +1,44 @@ %% LaTeX2e file `etocsnippet-30-A.tex' %% generated by the `filecontentsdef' environment -%% from source `etoc' on 2021/09/23. +%% from source `etoc' on 2022/08/31. %% \begingroup \etocglobaldefs % necessary for \etocname etc... to survive & +\makeatletter +% hack into longtable \hline to avoid annoying (here) stray lines at top +\def\LT@@hline{% + \ifx\@let@token\hline + \global\let\@gtempa\@gobble + \global\let\@gtempb\@firstofone %%% ADDED + \gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}% + \else + \global\let\@gtempa\@empty + \global\let\@gtempb\@gobble %%% ADDED + \gdef\LT@sep{\penalty-\@lowpenalty\vskip-\arrayrulewidth}% + \fi + \ifnum0=`{\fi}% + \multispan\LT@cols + \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr + \@gtempb{% %%% ADDED + \noalign{\LT@sep}% + \multispan\LT@cols + \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr + \noalign{\penalty\@M}% + }% %%% ADDED + \@gtempa} +\makeatother % observe the locations of the \\ \etocsetstyle{part} {} - {\\\hline} - {\strut\etocnumber &\bfseries\etocname&\etocpage } + {} + {\\\hline\multicolumn{3}{c}{\bfseries\vrule height6ex depth3ex width0pt + \etocifnumbered{\etocnumber. }{}\etocname}} {} \etocsetstyle{section} {} - {\etociffirst{\etocifnumbered{\\\hline}{\\\hline\hline}}{\\}} + {\etociffirst{\\\hline}{\\}} {\etocnumber&\etocname &\etocpage } {} |