summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-03-03 21:22:20 +0000
committerKarl Berry <karl@freefriends.org>2024-03-03 21:22:20 +0000
commit6775e8476ceaf3144e5ecefe933ecb44c3817e0d (patch)
treec8f3fc3c2831b6202f44b763e9078210d1b9be79 /Master/texmf-dist/tex/luatex
parentb3cf0581708e6e7464559073f4dc8842ca923c15 (diff)
minim
git-svn-id: svn://tug.org/texlive/trunk@70379 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex')
-rw-r--r--Master/texmf-dist/tex/luatex/minim/minim-doc.sty36
-rw-r--r--Master/texmf-dist/tex/luatex/minim/minim-pdfresources.lua2
2 files changed, 8 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/luatex/minim/minim-doc.sty b/Master/texmf-dist/tex/luatex/minim/minim-doc.sty
index 93d807f16a3..6f662dced6a 100644
--- a/Master/texmf-dist/tex/luatex/minim/minim-doc.sty
+++ b/Master/texmf-dist/tex/luatex/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
diff --git a/Master/texmf-dist/tex/luatex/minim/minim-pdfresources.lua b/Master/texmf-dist/tex/luatex/minim/minim-pdfresources.lua
index 468da03b485..66d168f4ecc 100644
--- a/Master/texmf-dist/tex/luatex/minim/minim-pdfresources.lua
+++ b/Master/texmf-dist/tex/luatex/minim/minim-pdfresources.lua
@@ -121,7 +121,7 @@ local removal_regex = {
local function update_page_resources(shippingout)
if M.self_destruct then return end
local resources = shippingout and pdf.getpageresources() or pdf.getxformresources() or ''
- for kind, used in pairs(page_resources) do
+ for kind, _ in pairs(page_resources) do
resources = string.gsub(resources, removal_regex[kind], '')
local entry = make_resource_entry(kind)
if entry then