aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2023-06-26 17:14:12 +0200
committerRobert Alessi <alessi@robertalessi.net>2023-06-26 17:14:12 +0200
commit58bdee4b160d5973e4f3f23a5d0919c97350e9d8 (patch)
tree4a126d76ffe3812d89e08aed07fd5bb45c12379b
parent9e6fb0eba8b80ae71cc99f63cf0972d8087f0888 (diff)
downloadicite-58bdee4b160d5973e4f3f23a5d0919c97350e9d8.tar.gz
updated etoc settings
-rw-r--r--icite.dtx14
1 files changed, 9 insertions, 5 deletions
diff --git a/icite.dtx b/icite.dtx
index 1b2a7db..6cb9fe0 100644
--- a/icite.dtx
+++ b/icite.dtx
@@ -180,7 +180,7 @@
180\usepackage{fontspec} 180\usepackage{fontspec}
181\usepackage[american]{babel} 181\usepackage[american]{babel}
182\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry} 182\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry}
183\babelfont{rm}{Old Standard} 183\babelfont{rm}[RawFeature=onum]{Old Standard}
184\babelfont{sf}{NewComputerModernSans10} 184\babelfont{sf}{NewComputerModernSans10}
185\babelfont{tt}{NewComputerModernMono10} 185\babelfont{tt}{NewComputerModernMono10}
186\usepackage{arabluatex} 186\usepackage{arabluatex}
@@ -315,26 +315,30 @@
315 {\marginpar{\hfill\emph{New feature} #1}}% 315 {\marginpar{\hfill\emph{New feature} #1}}%
316 \ignorespaces 316 \ignorespaces
317} 317}
318
318\usepackage{etoc} 319\usepackage{etoc}
319\etocsettocdepth{paragraph} 320\etocsettocdepth{paragraph}
321\makeatletter
320\newcommand{\icitetableofcontents}{% 322\newcommand{\icitetableofcontents}{%
321 \begingroup 323 \begingroup
322 \etocsetstyle{section}{}{} 324 \etocsetstyle{section}{}{}
323 {\etocsavedsectiontocline{% 325 {\l@section{%
324 \numberline{\etocnumber}\etocname}{\etocpage}}{} 326 \numberline{\etocnumber}\etocname}{\etocpage}}{}
325 \etocsetstyle{subsection}{}{} 327 \etocsetstyle{subsection}{}{}
326 {\etocsavedsubsectiontocline{% 328 {\l@subsection{%
327 \numberline{\etocnumber}\etocname}{\etocpage}}{}% 329 \numberline{\etocnumber}\etocname}{\etocpage}}{}%
328 \etocsetstyle{subsubsection}{}{} 330 \etocsetstyle{subsubsection}{}{}
329 {\etocsavedsubsubsectiontocline{% 331 {\l@subsubsection{%
330 \numberline{\etocnumber}\etocname}{\etocpage}}{}% 332 \numberline{\etocnumber}\etocname}{\etocpage}}{}%
331 \etocsetstyle{paragraph}{}{\leftskip2cm\rightskip 2.2em \parfillskip 333 \etocsetstyle{paragraph}{}{\leftskip2cm\rightskip 2.2em \parfillskip
332 0pt plus 1fil\relax \nobreak} 334 0pt plus 1fil\relax \nobreak}
333 {\noindent\etocname{} \etocpage{} }{\par}% 335 {\noindent\etocname{} \etocpage{} }{\par}%
334 \etocmulticolstyle[2]{\section*{Contents}} 336 \etocmulticolstyle[2]{\section*{Contents}}
335 \pdfbookmark[1]{Contents}{toc} 337 \pdfbookmark[1]{Contents}{toc}
336 \tableofcontents 338 \etoctoclines
339 \localtableofcontents
337 \endgroup} 340 \endgroup}
341\makeatother
338\EnableCrossrefs 342\EnableCrossrefs
339 %\CodelineIndex 343 %\CodelineIndex
340\RecordChanges 344\RecordChanges