Changes

Jump to navigation Jump to search
106 bytes added ,  08:05, 18 May 2011
m
added categories
as first value after the <code>\dimexpr</code> command and then the numeric values.
Notice that the following expression is also valid:
<texcode>
\placesidebyside {\externalfigure[cow][width=.4\textwidth]}
{\framed[width=.4\textwidth,height=\dimexpr.4\textwidth*200/275\relax]
{\vbox{this is a box}}}
</texcode>
<contextsource="yes">
\setupexternalfigures[location={local,default}]
\placesidebyside{\externalfigure[cow][width=.4\textwidth]}
\fi
</context>
 
The important point to keep in mind is that TeX performs '''integer''' arithmetic in units of scaled points.
Therefore, one must be careful, especially when using divisions that may lead to integer rounding.
== LuaTeX ==
''The output is now correct in both cases without making use of any tricks.''
 
 
[[Category:Inside ConTeXt]]
[[Category:ConTeXt programming]]

Navigation menu