Changes

Jump to navigation Jump to search
another example
\stoptext
</context>
</cd:example><cd:example title="Use \dimexpr if necessary">If you need calculations in assignments that are more than a simple multiplication, like <code>.5\textwidth</code>, you must use <code>\dimexpr ... \relax</code>! <texcode>\definemeasure[Bleed][3mm] \defineexternalfigure[fullwidthfigure][ width=\dimexpr\paperwidth + 2\measured{Bleed}\relax,]</texcode> You can usually avoid that by defining another few dimensions:</cd:example><cd:example title="Use \measured (d!) for calculations"><texcode>
\definemeasure[HalfWidth][.5\paperwidth]
\definemeasure[MarginWidth][.5\measured{HalfWidth}]

Navigation menu