From 58bdee4b160d5973e4f3f23a5d0919c97350e9d8 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 26 Jun 2023 17:14:12 +0200 Subject: updated etoc settings --- icite.dtx | 14 +++++++++----- 1 file 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 @@ \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 -- cgit v1.2.3