%\module [ % file=s-map-se, % version=2005.02.03, % title=\CONTEXT\ Style File, % subtitle=\MAPS\ basis stijl, % author={Hans Hagen, Taco Hoekwater and Siep Kroonenberg}, % date=\currentdate, % copyright={NTG / MAPS}% %] % This module re-implements the MAPS style for use with the Context % macro package. The original MAPS layout was designed and % implemented in LaTeX by Taco Hoekwater and Siep Kroonenberg. % This style will be cleaned up as soon as we have time for it. % - three layouts: % 1. two columns % 2. one column, with wide outer margins (option onecolumn) % 3. one column, with wide left margin (option asym) % - font sizes deviate from TeX's usual geometric progression % - use of sans-serif for headers and various details % - option realfonts uses Bitstream Charter, Euler Math and Latin Modern. % This is used for final typesetting. % The default font setup, intended for authors, uses Computer % Modern. % A mode nosubsub defines only two levels of sectioning. If you % don't need more and use the two-column layout, then this option % will probably improve the looks of your paper. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% pdftex support \newif\ifMapsInColumns \doifmode{asym}{\enablemode[onecolumn]} % implies onecolumn \doifnotmode{onecolumn}{\MapsInColumnstrue} \enablemode[realfonts] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% fonts %%%%%%%%% first, font sizes \definebodyfontenvironment [7pt][% LaTeX: scriptsize interlinespace=8pt, big=8pt, small=6pt% ] \definebodyfontenvironment [8pt][% LaTeX: footnotesize interlinespace=9pt, big=9pt, small=7pt, x=6pt% ] \definebodyfontenvironment [9pt][% LaTeX: small interlinespace=10pt, big=10pt, small=8pt,% x=7pt,% script=6pt% ] \definebodyfontenvironment [10pt][% LaTeX: normalsize interlinespace=11pt, big=11pt, a=11pt, small=9pt,% x=8pt,% script=7pt% ] \definebodyfontenvironment [11pt][% LaTeX: large interlinespace=11pt, big=11pt, small=10pt,% x=9pt,% script=8pt% ] \definebodyfontenvironment [14pt][% interlinespace=14pt, big=24pt, small=11pt, x=10pt% ] \definebodyfontenvironment [24pt][% interlinespace=24pt, big=24pt, small=14pt, x=11pt% ] \definebodyfontenvironment [22pt][% interlinespace=24pt, big=22pt, small=14pt, x=14pt% ] \definebodyfontenvironment [30pt][% interlinespace=30pt, big=30pt, small=26pt, x=26pt% ] %%% font families \usetypescriptfile[type-libertine] \usetypescriptfile[type-inconsolata] \startmode[mkii] \starttypescript [maps] [ec] \definetypeface [maps] [mm] [math] [euler] [default] [encoding=default,rscale=0.9] \usemathcollection[euler] \definetypeface [maps] [tt] [mono] [inconsolata] [default] [encoding=ec,rscale=0.92] \definetypeface [maps] [ss] [sans] [default] [default] [encoding=ec,rscale=0.95] \definetypeface [maps] [rm] [serif] [libertine] [default] [encoding=ec] \stoptypescript \usetypescript[maps] [ec] \stopmode \startmode[mkiv] \starttypescript [maps] \definetypeface [maps] [mm] [math] [euler] [default] [rscale=0.9] \definetypeface [maps] [tt] [mono] [inconsolata] [default] [rscale=0.92] \definetypeface [maps] [ss] [sans] [modern] [default] [rscale=0.95] \definetypeface [maps] [rm] [serif] [libertine] [default] \stoptypescript \usetypescript[maps] \stopmode \setupbodyfont[maps,10pt,rm] % activate protruding \setupinterlinespace[line=11pt] \setupfontsynonym[handling=pure] \setupalign[hanging] % \usetypescript[map][texnansi] % \setupbodyfont [map,10pt] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% additional general typographic details \setupindenting [yes,next,11pt] % indenting after enumerations etc. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% 3 versions of layout with matching headers % I would like to move the entire layout slightly toward the spine, % but Context seems to provide no good handle for that. % So instead, I'll use a two-column layout centered on the page and % matching single-column layouts. % It is easy to do the shift toward the spine when assembling the % volume with LaTeX pdfpages. \definepapersize [maps][% width=595.3bp, % 21cm height=756bp% 10.5in ] \setuppapersize [maps][maps] % parameters: % margin -> latex marginparwith \setuplayout[% topspace=40pt, height=688pt, header=33pt, margin=106pt, leftmargindistance=11pt, rightmargindistance=11pt% ] \setupblank[5.5pt] \setuppagenumbering [location=] \definetyping [widetyping] \setupheader [style=\ss] \setupfooter [style=\ss] \def\AuHead{% %\ifnum\pageno=\MapsPage \hbox{}\else \MapsRunningAuthor%\fi } \def\TiHead{% \ifnum\pageno=\MapsPage \relax \MapsRunningAuthor %\hbox{} \else \MapsRunningTitle\fi} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% sectioning \setupheads[sectionnumber=no, align=right] \def\hfonti{\ssbfa} \def\hfontii{\ssbf} \def\hfontiii{\rm\it} \def\runin#1#2{#2.} \doifmodeelse{nosubsub}{% \setuphead [section][% style=\hfontii, before={\blank[line]}, after={}% ] \setuphead [subsection][% style=\hfontiii, command=\runin, alternative=text, distance=6pt, before={\blank[halfline]}% ]}{% \setuphead [section][% style=\hfonti, before={\blank[line]}, after={\blank[halfline]}% ] \setuphead [subsection][% style=\hfontii, before={\blank[halfline]}, after={}% ] \setuphead [subsubsection][% style=\hfontiii, command=\runin, distance=6pt, alternative=text, before={\blank[halfline]}% ]} \doifmodeelse{nosubsub}{% \setuphead [subject][% style=\hfontii, before={\blank[halfline]}, after={}% ] \setuphead [subsubject][% style=\hfontiii, command=\runin, alternative=text, before={\blank[halfline]}% ]}{% \setuphead [subject][% style=\hfonti, before={\blank}, after={\blank[halfline]}% ] \setuphead [subsubject][% style=\hfontii, before={\blank[halfline]}, after={}% ] \setuphead [subsubsubject][% style=\hfontiii, command=\runin, alternative=text, before={\blank[halfline]}% ]} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% floats \setupfloats [location=center, before={\ss}] \setupcaptions [headstyle={\ss},style={\ssx}, stopper=.,distance=6pt, inbetween={\blank[halfline]}] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% various document elements %\startnotmode[realfonts] \def\ChkBox{% \hbox {\boxrulewidth=.4pt \raise.2ex\ruledvbox {\phantom{\vrule width .85ex height .85ex% }}}} \startmode[mkii] \pdfmapline{stmary10 stmary10