From 4576aa220e2ea1934c068c1031666fb4bf887de3 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 16 Nov 2020 09:56:46 +0100 Subject: appended {} to \altrfont and neutralized it in arabluatex.uc() --- arabluatex.dtx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'arabluatex.dtx') diff --git a/arabluatex.dtx b/arabluatex.dtx index 2972c0d..08f9be2 100644 --- a/arabluatex.dtx +++ b/arabluatex.dtx @@ -240,7 +240,6 @@ \usepackage{bookmark} \usepackage{authblk} \usepackage[scale=1.5]{ccicons} -\usepackage[lot]{multitoc} \usepackage{enumitem} \setlist{nosep} \setlist[itemize]{label=\textendash} @@ -287,6 +286,11 @@ {\marginpar{\hfill\emph{New feature} #1}}% \ignorespaces } +\usepackage{multicol} +\usepackage{tocloft} +\renewcommand\cftlotprehook{\begin{multicols}{2}} +\renewcommand\cftlotposthook{\end{multicols}} +\renewcommand\cftlottitlefont{\Large\bfseries} \usepackage{etoc} \etocsettocdepth{paragraph} \newcommand{\altableofcontents}{% @@ -307,18 +311,17 @@ \pdfbookmark[1]{Contents}{toc} \tableofcontents \endgroup} +\setlength\IndexMin{100pt} \EnableCrossrefs \RecordChanges \CodelineIndex \begin{document} \DocInput{arabluatex.dtx} - \printbibliography[heading=bibintoc] + \printbibliography[heading=bibnumbered] \phantomsection - \addcontentsline{toc}{section}{Change History} \PrintChanges \phantomsection - \addcontentsline{toc}{section}{Index} - \PrintIndex + \PrintIndex \end{document} % % \fi @@ -5095,16 +5098,16 @@ % it to suit our purpose: % \begin{macrocode} \AtBeginDocument{\ifdef{\LR}% - {\RenewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\normalfont#1\egroup}} - {\NewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\normalfont#1\egroup}}} + {\RenewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}} + {\NewDocumentCommand{\LR}{m}{\bgroup\textdir TLT\rmfamily#1\egroup}}} % \end{macrocode} % \end{macro} % \begin{macro}{\RL} This one typesets its argument from right to % left. Same remark as above regarding the need of redefinition. % \begin{macrocode} \AtBeginDocument{\ifdef{\RL}% - {\RenewDocumentCommand{\RL}{m}{\bgroup\textdir TRT\normalfont#1\egroup}} - {\NewDocumentCommand{\RL}{m}{\bgroup\textdir TRT#1\normalfont\egroup}}} + {\RenewDocumentCommand{\RL}{m}{\bgroup\textdir TRT\rmfamily#1\egroup}} + {\NewDocumentCommand{\RL}{m}{\bgroup\textdir TRT#1\rmfamily\egroup}}} % \end{macrocode} % \end{macro} % \begin{macro}{\MkArbBreak} @@ -5242,7 +5245,7 @@ % font may also be selected with the font-selecting commands of the % \package{fontspec} package. % \begin{macrocode} -\def\al@trans@font{\normalfont}% +\def\al@trans@font{\rmfamily}% \NewDocumentCommand{\SetTranslitFont}{m}{\def\al@trans@font{#1}} % \end{macrocode} % \end{macro} -- cgit v1.2.3