diff options
Diffstat (limited to 'tex/context/base/page-log.tex')
-rw-r--r-- | tex/context/base/page-log.tex | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/tex/context/base/page-log.tex b/tex/context/base/page-log.tex index 58cab81df..65dcd7713 100644 --- a/tex/context/base/page-log.tex +++ b/tex/context/base/page-log.tex @@ -58,15 +58,15 @@ %D is provided by a macro that signals changes in layout %D specifications: %D -%D \starttypen +%D \starttyping %D \recalculatelogos -%D \stoptypen +%D \stoptyping %D %D as well as a simple placement macro: %D -%D \starttypen +%D \starttyping %D \addlogobackground <box> -%D \stoptypen +%D \stoptyping %D %D In no way the following boolean switch should be used %D directly. @@ -79,12 +79,12 @@ %D The current state of logos is registered in a status %D variable \type {\logostatus}. %D -%D \starttabulatie[|l|l|l|] +%D \starttabulate[|l|l|l|] %D \NC 0 \NC don't place \NC remains 0 \NC \NR %D \NC 1 \NC place now \NC remains 1 \NC \NR %D \NC 2 \NC calulate and place \NC becomes 1 \NC \NR %D \NC 3 \NC calculate and place once \NC becomes 2 \NC \NR -%D \stoptabulatie +%D \stoptabulate \chardef\logostatus=0 @@ -136,75 +136,75 @@ \fi} \def\dosetlogobox#1#2% - {\global\setbox#1\vbox to \papierhoogte + {\global\setbox#1\vbox to \paperheight {\dontcomplain % needed here ? \calculatereducedvsizes % needed here ? \offinterlineskip #2\relax - \vskip-\kopwit - \dodosetlogobox\v!boven\blap - \vskip\kopwit - \dodosetlogobox\v!hoofd\blap - \vskip\hoofdhoogte - \vskip\hoofdafstand - \dodosetlogobox\v!tekst\blap - \vskip\teksthoogte - \vskip\voetafstand - \vskip\voethoogte - \dodosetlogobox\v!voet \tlap + \vskip-\topspace + \dodosetlogobox\v!top\blap + \vskip\topspace + \dodosetlogobox\v!header\blap + \vskip\headerheight + \vskip\headerdistance + \dodosetlogobox\v!text\blap + \vskip\textheight + \vskip\footerdistance + \vskip\footerheight + \dodosetlogobox\v!footer \tlap \vfilll - \dodosetlogobox\v!onder\tlap - \vskip\kopwit} + \dodosetlogobox\v!bottom\tlap + \vskip\topspace} \smashbox#1} \def\dodosetlogobox#1#2% - {\hbox % width equals \zetbreedte + {\hbox % width equals \makeupwidth {\def\docommando##1% {\donefalse \ifnum\logostatus=3 \ExpandBothAfter \doifinset{\getvalue{\??lo#1##1}}\requestedlogos\donetrue \else - \doifvalue{\??lo#1##1\c!status}\v!start\donetrue + \doifvalue{\??lo#1##1\c!state}\v!start\donetrue \fi \ifdone - #2{\hbox{\getvalue{\??lo#1##1\c!commando}}}% + #2{\hbox{\getvalue{\??lo#1##1\c!command}}}% \fi}% \def\dodocommando##1##2##3##4##5##6% {\hsmash {\hskip-\texthoffset - \hbox to \papierbreedte + \hbox to \paperwidth {\rlap{\docommando##1}\hss\llap{\docommando##6}}% - \hskip-\papierbreedte - \hbox to \papierbreedte + \hskip-\paperwidth + \hbox to \paperwidth {\hskip\texthoffset - \hskip-\linkermargebreedte - \hskip-\linkermargeafstand - \hbox to \linkermargebreedte{\docommando##2\hss}% - \hskip\linkermargeafstand - \hbox to \zetbreedte{\docommando##3\hss\docommando##4}% - \hskip\rechtermargeafstand - \hbox to \rechtermargebreedte{\hss\docommando##5}% + \hskip-\leftmarginwidth + \hskip-\leftmargindistance + \hbox to \leftmarginwidth{\docommando##2\hss}% + \hskip\leftmargindistance + \hbox to \makeupwidth{\docommando##3\hss\docommando##4}% + \hskip\rightmargindistance + \hbox to \rightmarginwidth{\hss\docommando##5}% \hfill}}}% \normalbaselines \settexthoffset \hsmash - {\hbox to \zetbreedte{\hss\docommando\c!midden\hss}}% + {\hbox to \makeupwidth{\hss\docommando\c!middle\hss}}% \hsmash {\hskip-\texthoffset - \hbox to \papierbreedte{\docommando\v!pagina\hss}}% + \hbox to \paperwidth{\docommando\v!page\hss}}% \swapmargins \doifbothsidesoverruled \dodocommando - \v!linkerrand \v!linkermarge \v!links - \v!rechts \v!rechtermarge \v!rechterrand + \v!leftedge \v!leftmargin \v!left + \v!right \v!rightmargin \v!rightedge \orsideone \dodocommando - \v!linkerrand \v!linkermarge \v!links - \v!rechts \v!rechtermarge \v!rechterrand + \v!leftedge \v!leftmargin \v!left + \v!right \v!rightmargin \v!rightedge \orsidetwo \dodocommando - \v!rechterrand \v!rechtermarge \v!rechts - \v!links \v!linkermarge \v!linkerrand + \v!rightedge \v!rightmargin \v!right + \v!left \v!leftmargin \v!leftedge \od}} %D The user interface is relatively simple and provides @@ -233,4 +233,4 @@ {\xdef\requestedlogos{\iffirstargument#1\else\definedlogos\fi}% \global\chardef\logostatus3 } -\protect \endinput
\ No newline at end of file +\protect \endinput |