[NTG-context] Help needed with slide grid layout

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Wed May 25 16:01:21 CEST 2022


Stefan Nedeljkovic via ntg-context schrieb am 25.05.2022 um 13:35:
> Dear list,
> 
> This is a follow-up question on my previous question about Jean-Luc 
> Doumont and his grid layouts. This time I have concrete questions. I 
> reverse engineered his slide (slide_grid_overlay.pdf). All his units are 
> based on inches, because the inch is an integer multiple (72) of the TeX 
> point. His base unit is 0.1in. I tried implementing the layout first, 
> but the pdf dimensions do not match the ones I set up. For example the 
> width should be 8 inches, but the pdf is over 11 inches wide. I wish to 
> shut off all margins and similar things and only have a text area with 
> an offset of 0.2in all around the page (see slide_grid_overlay.pdf). 
> Here is my current attempt:

You have to use the \measured (with a trailing s) command when you need
multiples of a measure value. When you use something like 2\measure{...}
ConTeXt uses the "2" followed by the value of the measure, the following
example demonstrates this in the second output.

%%%% begin example
\definemeasure [point] [1pt]

\starttext

\startbuffer
\tex{measure}: \measure{point}

\tex{measured}: \the\measured{point}
\stopbuffer

\typebuffer \getbuffer

\startbuffer
2\tex{measure}: 2\measure{point}

2\tex{measured}: \the\dimexpr2\measured{point}\relax
\stopbuffer

\typebuffer \getbuffer

\stoptext
%%%% end example

Wolfgang


More information about the ntg-context mailing list