Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippet 19 generates Parent-Child 'Reference/' --> 'text-unit/user' warning #20

Open
jfbu opened this issue Jan 13, 2024 · 2 comments
Open
Labels
at-2024-01-12 2024-01-12 has the issue may-be-a-duplicate tagging Relative to support of the `LaTeX tagged PDF` project

Comments

@jfbu
Copy link
Owner

jfbu commented Jan 13, 2024

19

%% -*- mode: latex -*-
%% LaTeX2e file `etocsnippet-19.tex'
%% generated by the `filecontentsdef' environment
%% from source `etoc' on 2024/01/12.
%% EDITED: added chapter style!
\begingroup
\etocglobaldefs % necessary for \etocname etc... to survive &
\makeatletter
%<irrelevant hack into longtable from original post has been removed>

% observe the locations of the \\
\etocsetlinestyle{part}
  {}
  {}
  {\\\hline\multicolumn{3}{c}{\bfseries\vrule height6ex depth3ex width0pt
                              \makebox[0pt]{\etocifnumbered{\etocnumber. }{}\etocname}}}
  {}

\etocsetlinestyle{chapter}
             {}
             {\\\hline\hline}
             {\multicolumn{3}{|c|}{\etocname}}
             {}


\etocsetlinestyle{section}
  {}
  {\etociffirst{\\\hline}{\\}}
  {\etocnumber&\etocname &\etocpage }
  {}

\etocsetlinestyle{subsection}
  {}
  {\\}
  {&\makebox[1cm][c]{\etocnumber}%
    \parbox[t]{\dimexpr6cm-\tabcolsep\relax}{\sloppy\itshape\etocname\strut}%
   &\itshape\etocpage }
  {}

\etocsettocstyle
    {\hypersetup{hidelinks}%
     \begin{longtable}{|>{\bfseries}c|p{7cm}|r|}
     \hline
     \multicolumn{3}{|c|}{\Large\bfseries\strut\strut TABLE OF CONTENTS}%
     }
    {\\\hline\end{longtable}}

\etocsetnexttocdepth {subsection}

\tableofcontents
\endgroup
@jfbu
Copy link
Owner Author

jfbu commented Jan 15, 2024

The longtable hack is irrelevant here and will be removed.

@jfbu
Copy link
Owner Author

jfbu commented Jan 15, 2024

Maybe is a manifestation of #24.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
at-2024-01-12 2024-01-12 has the issue may-be-a-duplicate tagging Relative to support of the `LaTeX tagged PDF` project
Projects
None yet
Development

No branches or pull requests

1 participant