updated etoc settings

This commit is contained in:
Robert Alessi 2023-06-26 17:14:12 +02:00
parent 9e6fb0eba8
commit 58bdee4b16
1 changed files with 9 additions and 5 deletions

View File

@ -180,7 +180,7 @@
\usepackage{fontspec}
\usepackage[american]{babel}
\usepackage[letterpaper,margin=25mm,left=50mm,nohead]{geometry}
\babelfont{rm}{Old Standard}
\babelfont{rm}[RawFeature=onum]{Old Standard}
\babelfont{sf}{NewComputerModernSans10}
\babelfont{tt}{NewComputerModernMono10}
\usepackage{arabluatex}
@ -315,26 +315,30 @@
{\marginpar{\hfill\emph{New feature} #1}}%
\ignorespaces
}
\usepackage{etoc}
\etocsettocdepth{paragraph}
\makeatletter
\newcommand{\icitetableofcontents}{%
\begingroup
\etocsetstyle{section}{}{}
{\etocsavedsectiontocline{%
{\l@section{%
\numberline{\etocnumber}\etocname}{\etocpage}}{}
\etocsetstyle{subsection}{}{}
{\etocsavedsubsectiontocline{%
{\l@subsection{%
\numberline{\etocnumber}\etocname}{\etocpage}}{}%
\etocsetstyle{subsubsection}{}{}
{\etocsavedsubsubsectiontocline{%
{\l@subsubsection{%
\numberline{\etocnumber}\etocname}{\etocpage}}{}%
\etocsetstyle{paragraph}{}{\leftskip2cm\rightskip 2.2em \parfillskip
0pt plus 1fil\relax \nobreak}
{\noindent\etocname{} \etocpage{} }{\par}%
\etocmulticolstyle[2]{\section*{Contents}}
\pdfbookmark[1]{Contents}{toc}
\tableofcontents
\etoctoclines
\localtableofcontents
\endgroup}
\makeatother
\EnableCrossrefs
%\CodelineIndex
\RecordChanges