diff options
Diffstat (limited to 'macros/luatex/generic/minim/minim-doc.sty')
-rw-r--r-- | macros/luatex/generic/minim/minim-doc.sty | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/macros/luatex/generic/minim/minim-doc.sty b/macros/luatex/generic/minim/minim-doc.sty index 93d807f16a..6f662dced6 100644 --- a/macros/luatex/generic/minim/minim-doc.sty +++ b/macros/luatex/generic/minim/minim-doc.sty @@ -42,7 +42,7 @@ \font\tenrm {Latin Modern Roman:script=latn;protrusion=default;} at 10pt \font\tenbf {Latin Modern Roman/B:script=latn;} at 10pt \font\tenit {Latin Modern Roman/I:script=latn;} at 10pt -\font\tentt {Latin Modern Mono:script=latn;+smcp;} at 10pt +\font\tentt {Latin Modern Mono:script=latn;} at 10pt \font\title {Latin Modern Roman/B:script=latn;} at 12pt \font\Title {Latin Modern Roman/B:script=latn;} at 16pt @@ -122,25 +122,8 @@ endfig;} % 1 document structure -% page artifacts -\edef\tmp{\markartifact{Pagination /Subtype/Footer}{\the\footline}} -\footline\expandafter{\tmp} - -% footnotes -\edef\footnoterule{\markartifact{Layout}\footnoterule} -\catcode`\@=11 -\def\footnote#1{\let\@sf\empty % parameter #2 (the text) is read later - \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\/\fi - \marknoteref{#1}\@sf\vfootnote{#1}} -\def\vfootnote#1{% - \insert\footins\bgroup - \interlinepenalty\interfootnotelinepenalty - \splittopskip\ht\strutbox % top baseline for broken footnotes - \splitmaxdepth\dp\strutbox \floatingpenalty\@MM - \leftskip\z@skip \rightskip\z@skip \spaceskip\z@skip \xspaceskip\z@skip - \nextpartag{}\marknotelbl{#1}\enspace\startelement{P}% - \footstrut\futurelet\next\fo@t} -\catcode`\@=12 +\autotagplainoutput +\def\textindent#1{\noindent#1\enspace\ignorespaces} % \startlist \item x. ... \stoplist \def\listskip{\vskip 3pt plus 2pt\vskip-\parskip} @@ -151,31 +134,26 @@ endfig;} \hbox to 2em{\hss\startelement{Lbl}#1.~~}% \startelement{LBody}\ignorespaces} +\sectionstructure{section, chapter} + % \chapter Title \par -\addstructuretype Sect Chapter \protected\def\chapter#1 \par{% \vfil\break - \ensurestopelement{Section}% - \global\advance\chapterno1 \global\sectionno0 - \startelement title{Chapter \the\chapterno}{Chapter}% + \markchapter[Chapter \the\chapternr]% \outline open {#1}% \addtotoc{\chapter{#1}{\lastdestinationname}}% \nextpartag{H}\quitvmode \red{\Title#1\hfill\copy\notehead}\bigskip\nobreak} -\newcount \chapterno % \section Title \par -\addstructuretype Sect Section \protected\def\section#1 \par{% \bigskip\penalty-50\relax - \global\advance\sectionno1 - \startelement title{Section \the\chapterno.\the\sectionno}{Section}% + \marksection[Section \the\chapternr.\the\sectionnr]% \outline closed {#1}% \addtotoc{\section{#1}{\lastdestinationname}}% \nextpartag{H}\quitvmode \red{\title#1}% \par\nobreak} -\newcount \sectionno % table of contents \newtoks\toc \newif\iftoc \toctrue |