Changes

Jump to navigation Jump to search
1,135 bytes added ,  21:09, 22 April 2013
no edit summary
\externalfigure[cow][width=\dimexpr(\ColumnABii)\relax]
=== Offene Fragen Important to understand ===This points have to be explained. ==== \the ==== \the: what is it?  ==== Expanding ==== expandexpanding of variables: What does this mean? ==== \relax ====With \relax the termination of a calculation is garantied. If there is one too much ... no problem, then it is ignored. "add a \relax after code definitions to prevent the scanner from reading too much" \the\dimexpr... will look ahead till there's something nonexpandable, and contrary to what one expects \dimexpr(...)  will not stop at the ) so, although with measures it normally goes okay, personally I always use \relax as terminator; the \relax will be eaten up so there is no interference but it guarantees to stop scanning. <code>\definemeasure[ColumnC][30mm]\definemeasure[ColumnD][40mm]\definemeasure[ColumnCDi][\the\dimexpr(\measure{ColumnC}+\measure{ColumnD})\relax]</code> ;Further examples: <code>\footnote{\input tufte \relax} \par\definepapersize[bigsheet][width=\dimexpr\paperwidth+6mm\relax,height=\dimexpr\paperheight+6mm\relax]\setupTABLE[c][3][width={\dimexpr(\textwidth-2cm)* 2 / 3\relax}]\definemeasure[topspace] [\dimexpr(210mm-31mm*5)/2\relax]</code>
[[Category:ConTeXt-Issues]]
[[Category:Programming]]

Navigation menu