| 1 |
|
| 2 |
%% This is the style file for the manuals of the minim format and related |
| 3 |
%% packages. |
| 4 |
|
| 5 |
\ifdefined \manual |
| 6 |
\expandafter\endinput\fi |
| 7 |
|
| 8 |
\input minim |
| 9 |
%\decompressedpdf |
| 10 |
%\debugmetapost |
| 11 |
|
| 12 |
\pdfalevel 3a |
| 13 |
\pdfualevel 1 |
| 14 |
\overfullrule = 0pt |
| 15 |
|
| 16 |
% 1 page layout |
| 17 |
|
| 18 |
\pdfvariable horigin 0pt |
| 19 |
\pdfvariable vorigin 0pt |
| 20 |
\frenchspacing |
| 21 |
|
| 22 |
\uselanguage{ukenglish} |
| 23 |
\hyphenation { |
| 24 |
mark-tab-le-cell |
| 25 |
mark-tab-le-hea-der |
| 26 |
no-de-ci-mal-com-ma |
| 27 |
} |
| 28 |
|
| 29 |
\parindent 0pt |
| 30 |
\baselineskip 12pt plus 1pt |
| 31 |
\parskip 8pt plus 4pt minus 1pt |
| 32 |
|
| 33 |
\abovedisplayskip 3pt plus 2pt |
| 34 |
\belowdisplayskip 4pt plus 2pt |
| 35 |
|
| 36 |
\hsize 12cm |
| 37 |
\vsize 56\baselineskip |
| 38 |
|
| 39 |
\voffset = \dimexpr (\pageheight-\vsize)/2\relax |
| 40 |
\hoffset = \dimexpr (\pagewidth-\hsize)/2\relax |
| 41 |
|
| 42 |
% 1 fonts |
| 43 |
|
| 44 |
\input luaotfload.sty |
| 45 |
\font\tenrm {Latin Modern Roman:script=latn;protrusion=default;} at 10pt |
| 46 |
\font\tenbf {Latin Modern Roman/B:script=latn;} at 10pt |
| 47 |
\font\tenit {Latin Modern Roman/I:script=latn;} at 10pt |
| 48 |
\font\tentt {Latin Modern Mono:script=latn;} at 10pt |
| 49 |
\font\title {Latin Modern Roman/B:script=latn;} at 12pt |
| 50 |
\font\Title {Latin Modern Roman/B:script=latn;} at 16pt |
| 51 |
|
| 52 |
\font\altmath {Tex Gyre Pagella Math:mode=base;script=math;ssty=0;} at 10pt |
| 53 |
\font\altmaths {Tex Gyre Pagella Math:mode=base;script=math;ssty=1;} at 7pt |
| 54 |
\font\altmathss {Tex Gyre Pagella Math:mode=base;script=math;ssty=2;} at 5pt |
| 55 |
\textfont 1 = \altmath |
| 56 |
\scriptfont 1 = \altmaths |
| 57 |
\scriptscriptfont 1 = \altmathss |
| 58 |
|
| 59 |
\font\tenmath {Latin Modern Math:mode=base;script=math;ssty=0;} at 10pt |
| 60 |
\font\tenmaths {Latin Modern Math:mode=base;script=math;ssty=1;} at 7pt |
| 61 |
\font\tenmathss {Latin Modern Math:mode=base;script=math;ssty=2;} at 5pt |
| 62 |
\textfont 0 = \tenmath |
| 63 |
\scriptfont 0 = \tenmaths |
| 64 |
\scriptscriptfont 0 = \tenmathss |
| 65 |
|
| 66 |
\expandglyphsinfont \tenrm 25 25 5 |
| 67 |
\protrudechars=2 \adjustspacing=2 |
| 68 |
\tenrm |
| 69 |
|
| 70 |
\mathfam{blackboard, `\mscra-`\mscrz} 1 |
| 71 |
|
| 72 |
% 1 code typesetting |
| 73 |
|
| 74 |
\chardef\thecolourstack = \pdffeedback colorstackinit page {0 g 0 G} |
| 75 |
\def\pushcolour#1{\pdfextension colorstack \thecolourstack push {#1}} |
| 76 |
\def\popcolour{\pdfextension colorstack \thecolourstack pop\relax} |
| 77 |
\def\red#1{\pushcolour{0.75 0 0 rg}{#1}\popcolour} |
| 78 |
|
| 79 |
\def\emph#1{{\tenit #1\/}} |
| 80 |
|
| 81 |
\newattributeclass Code |
| 82 |
attr Layout Placement /Block |
| 83 |
attr CSS-2.00 display (block) |
| 84 |
|
| 85 |
\def\breakablespace{\penalty0~} |
| 86 |
\catcode`\⟦=\active |
| 87 |
\def⟦{\quitvmode\begingroup\catcode`\∥=0\relax |
| 88 |
\markparagraphsfalse |
| 89 |
\def\do##1{\catcode`##1=12}\dospecials |
| 90 |
\catcode`\%=\active \letcharcode`\%=\verbatimcomment |
| 91 |
\catcode`\ =\active \letcharcode`\ =\breakablespace |
| 92 |
\def\par{\ifhmode\tentt\endgraf\else\vskip\baselineskip\fi}% |
| 93 |
\everypar{\stopelement{Code}% |
| 94 |
\startelement class Code {Code}}% |
| 95 |
\parskip0pt\tentt \obeylines |
| 96 |
\nextif*{\verbatim\ignore}{\expandafter\ignore\verbatim}} |
| 97 |
\def\verbatim#1⟧{\red{\markelement{Code}{#1}}\endgroup} |
| 98 |
\def\verbatimcomment{\tenit\Uchar`\%} |
| 99 |
|
| 100 |
% 1 the minim symbol |
| 101 |
|
| 102 |
\newbox\notehead |
| 103 |
\newmetapostinstance [jobname='logo'] \mnmMP |
| 104 |
\runmetapost \mnmMP { |
| 105 |
beginfig(1) |
| 106 |
w:=1/27; pickup pencircle scaled 1/9; |
| 107 |
path c; c := |
| 108 |
(-3/5,-1/6 ) {down}.. |
| 109 |
(-1/5,-1/2 ) {right}.. |
| 110 |
( 3/5, 1/6 ) {up}.. |
| 111 |
( 1/5, 1/2 ) {left}.. cycle; |
| 112 |
filldraw c withcolor .75 red; |
| 113 |
path p; p := |
| 114 |
(-0.383-w,-0.323-w) ..tension 1.35.. (-0.094-w, 0.094+w) ..tension 1.5.. |
| 115 |
( 0.383+w, 0.323+w) ..tension 1.35.. ( 0.094+w,-0.094-w) ..tension 1.5.. cycle ; |
| 116 |
p := (-1,-1) -- (1,-1) -- (1,1) -- p -- (1,1) -- (-1,1) -- cycle ; |
| 117 |
clip currentpicture to p; |
| 118 |
draw (3/5, 1/6) -- (3/5, 5/2) withcolor .75 red; |
| 119 |
setbounds currentpicture to c; |
| 120 |
currentpicture := currentpicture scaled 8pt ; |
| 121 |
endfig;} |
| 122 |
\boxnextmpimage \mnmMP \notehead |
| 123 |
\setbox\notehead=\hbox{\markartifact{Layout}{\box\notehead}} |
| 124 |
\closemetapostinstance \mnmMP |
| 125 |
|
| 126 |
% 1 document structure |
| 127 |
|
| 128 |
\autotagplainoutput |
| 129 |
\def\textindent#1{\noindent#1\enspace\ignorespaces} |
| 130 |
|
| 131 |
% \startlist \item x. ... \stoplist |
| 132 |
\def\listskip{\vskip 3pt plus 2pt\vskip-\parskip} |
| 133 |
\def\startlist{\smallskip\startelement{L}} |
| 134 |
\def\stoplist{\stopelement{L}\smallskip} |
| 135 |
\def\item#1.{\listskip |
| 136 |
\nextpartag{LI}\hangindent2em\quitvmode |
| 137 |
\hbox to 2em{\hss\startelement{Lbl}#1.~~}% |
| 138 |
\startelement{LBody}\ignorespaces} |
| 139 |
|
| 140 |
\sectionstructure{subsection, section, chapter} |
| 141 |
|
| 142 |
% \chapter Title \par |
| 143 |
\protected\def\chapter#1 \par{% |
| 144 |
\vfil\break |
| 145 |
\markchapter[Chapter \the\chapternr]% |
| 146 |
\outline open {#1}% |
| 147 |
\addtotoc{\chapter{#1}{\lastdestinationname}}% |
| 148 |
\nextpartag{H}\quitvmode |
| 149 |
\red{\Title#1\hfill\copy\notehead}\bigskip\nobreak} |
| 150 |
|
| 151 |
% \section Title \par |
| 152 |
\protected\def\section#1 \par{% |
| 153 |
\bigskip\penalty-50\relax |
| 154 |
\marksection[Section \the\chapternr.\the\sectionnr]% |
| 155 |
\outline open {#1}% |
| 156 |
\addtotoc{\section{#1}{\lastdestinationname}}% |
| 157 |
\nextpartag{H}\quitvmode |
| 158 |
\red{\title#1}% |
| 159 |
\par\nobreak} |
| 160 |
|
| 161 |
% \subsection Title \par |
| 162 |
\protected\def\subsection#1 \par{% |
| 163 |
\smallskip\penalty-50\relax |
| 164 |
\marksubsection[Section \the\chapternr.\the\sectionnr.\the\subsectionnr]% |
| 165 |
\outline closed {#1}% |
| 166 |
\nextpartag{H}\quitvmode |
| 167 |
\red{\tenbf#1}% |
| 168 |
\par\nobreak} |
| 169 |
|
| 170 |
% table of contents |
| 171 |
\newtoks\toc \newif\iftoc \toctrue |
| 172 |
\def\addtotoc#1{% |
| 173 |
\iftoc \edef\toctmp{#1}% |
| 174 |
\write\auxfile\expandafter |
| 175 |
{\expandafter\toksapp\expandafter\toc |
| 176 |
\expandafter{\toctmp{\the\count0}}}\fi\toctrue} |
| 177 |
|
| 178 |
% an auxiliary file |
| 179 |
\newread \auxfile |
| 180 |
\immediate\openin\auxfile = \jobname.aux |
| 181 |
\ifeof\auxfile |
| 182 |
\def\next{}\else |
| 183 |
\def\next{\input \jobname.aux}\fi |
| 184 |
\immediate\closein\auxfile \next |
| 185 |
\newwrite \auxfile |
| 186 |
\immediate\openout\auxfile = \jobname.aux |
| 187 |
|
| 188 |
\autotagformulas |
| 189 |
|
| 190 |
\def\mailname{minim} |
| 191 |
\def\maketitle{% |
| 192 |
\setembeddedfilesmoddate {\getmetadata date} |
| 193 |
\begingroup |
| 194 |
\def\outline##1##{\ignore} |
| 195 |
\tocfalse \chapter \getmetadata title |
| 196 |
\hfill \tenrm version \getmetadata version |
| 197 |
\par\endgroup |
| 198 |
\marktableaslist |
| 199 |
\tagattribute List ListNumbering /None |
| 200 |
\halign {\strut |
| 201 |
\qquad##\quad&##\hfil\cr |
| 202 |
author&\getmetadata author\cr |
| 203 |
contact&{\def\tmp{@}\def\TMP{.}% |
| 204 |
\mailname\tmp elrenkema\TMP nl}\cr} |
| 205 |
\smallskip} |
| 206 |
|
| 207 |
% 1 chapters and full manuals |
| 208 |
|
| 209 |
% the EUPL |
| 210 |
\def\licencesection{\section Licence |
| 211 |
|
| 212 |
\embedfile global file {EUPL-1.2-EN.txt} |
| 213 |
desc {Licence for this package (EUPL).} |
| 214 |
name LICENCE mimetype text/plain |
| 215 |
relation Unspecified uncompressed |
| 216 |
|
| 217 |
This package may be distributed under the terms of the European Union Public |
| 218 |
Licence (EUPL) version 1.2 or later. An english version of this licence has |
| 219 |
been included as an attachment to this file; copies in other languages can be |
| 220 |
obtained at |
| 221 |
\stopformulatagging$$\hbox |
| 222 |
{\hyperlink alt{Link to the website of the EUPL.} |
| 223 |
url {https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12}% |
| 224 |
https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\endlink}$$\startformulatagging} |
| 225 |
|
| 226 |
% for identifying which file we are typesetting |
| 227 |
\edef\thejobname{\expandafter\scantextokens\expandafter{\jobname}} |
| 228 |
\newif \ifchapter |
| 229 |
\def\manual#1{\def\tmp{#1}\ifx\thejobname\tmp |
| 230 |
\chapterfalse\else\chaptertrue\fi} |
| 231 |
\def\endmanual{\ifchapter\expandafter\endinput\else |
| 232 |
\licencesection\expandafter\bye\fi} |
| 233 |
|
| 234 |
% typesetting a table of comtents |
| 235 |
\def\makecontents{% |
| 236 |
\tocfalse \section Contents \par |
| 237 |
\smallskip \begingroup \parskip1pt |
| 238 |
\protected\def\chapter##1##2##3{% |
| 239 |
\stopelement{TOC}\smallskip |
| 240 |
\nextpartag{}\red{\tenbf\marktocentry{##2}{}{\strut##1}{\hfill~}{##3}}% |
| 241 |
\smallskip\startelement{TOC}} |
| 242 |
\protected\def\section##1##2##3{% |
| 243 |
\marktocentry{##2}{}{\strut\quad##1}{\dotfill~}{##3}\par} |
| 244 |
\startelement{TOC} \startelement{TOC} |
| 245 |
\the\toc |
| 246 |
\stopelement{TOC} \stopelement{TOC} |
| 247 |
\endgroup} |
| 248 |
|
| 249 |
% introduction |
| 250 |
|
| 251 |
\endinput |
| 252 |
|