-
Notifications
You must be signed in to change notification settings - Fork 0
/
etocsnippet-12.txt
46 lines (46 loc) · 1.65 KB
/
etocsnippet-12.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%% -*- mode: latex -*-
%% LaTeX2e file `etocsnippet-12.tex'
%% generated by the `filecontentsdef' environment
%% from source `etoc' on 2024/01/12.
%% EDITED: - configure chapter lines, not part lines
%% - manually mute tagging for footnotes
\begingroup
\newsavebox{\forsubsections}
%%%%%%%%>>>>
%%%%%%%%\etocsetlinestyle{part}
\etocsetlinestyle{chapter}
%%%%%%%%<<<<
{\upshape. \etocskipfirstprefix}
{. \upshape}
{\bfseries\etocname:~~}
{}
\etocsetlinestyle{section}
{\itshape\etocskipfirstprefix}
{, }
{\mdseries\etocname}
{}
\etocsetlinestyle{subsection}
{\begin{lrbox}{\forsubsections}\footnotesize\upshape\etocskipfirstprefix}
{; }
{\etocname}
{.\end{lrbox}\footnote{\unhbox\forsubsections}}
\etocsetlinestyle{subsubsection}
{ (\itshape\etocskipfirstprefix}
{, }
{\etocname}
{\/\upshape)}
\etocsettocstyle{Here is the rather crazy inline table of contents, with both
subsections and subsubsections listed in footnotes. We had to mute the
tagging hooks from \string\footnote, and, a bit to our surprise, this was
enough to let warnings from latex-lab go away AND the PDF looks OK in
\url{https://ngpdf.com} editor, Hurray!%
%%%%%%%%>>>> #19
\AssignSocketPlug{tagsupport/fnmark}{identity}%
\AssignSocketPlug{tagsupport/fntext/begin}{noop}%
\AssignSocketPlug{tagsupport/fntext/end}{noop}%
\AssignSocketPlug{tagsupport/fntext/text}{identity}%
\AssignSocketPlug{tagsupport/fntext/mark}{identity}%
%%%%%%%%<<<<
}{.\par}
\tableofcontents \label{toc:crazyinline}
\endgroup