Changes

Jump to navigation Jump to search
changed to texcode instead of pre
The <tt>scrartcl</tt> class from the KOMA package does some fairly sophisticated calculations to determine an appropriate page layout. A sample document (with a framebox to show the text area) is simply:
<pretexcode>
\documentclass[DIVcalc,twoside]{scrartcl}
\begin{document}
\noindent\framebox{\rule{0pt}{\textheight}\rule{\textwidth}{0pt}}
\end{document}
</pretexcode>
ConTeXt:
The following code duplicates the <tt>scrartcl</tt> calculations to set the text area and produces a similar sample document, again with a framed box to show the text area.
<pretexcode>
\def\BCOR{3mm}% eventual bounding correction
\newdimen\PageWidth \PageWidth=\paperwidth
\framed[width=\textwidth,height=\textheight]{}
\stoptext
</pretexcode>
In the beta version of ConTeXt, there is probably a better way to achieve the
same...
Anonymous user

Navigation menu