diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-31 20:17:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-31 20:17:10 +0000 |
commit | 4e9313146db51b1de8d36a12a57139c970aca05b (patch) | |
tree | 2ea87ca35ef51d252822d93f50635aea2f007aeb /Master/texmf-dist/doc/latex/etoc/etocsnippet-30-A.tex | |
parent | f899363d96052e89d9d81c5b4598da38838946c8 (diff) |
etoc (31aug22)
git-svn-id: svn://tug.org/texlive/trunk@64249 c570f23f-e606-0410-a88d-b1316a301751
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 } {} |