Open main menu

Changes

m
Reverted edit of 67.159.5.117, changed back to last version by Mojca Miklavec
<xmlcode>
<tommmmfloat>
<figure file="hacker.jpg" context="width=3cm" />
<figure file="cow.pdf" context="width=.5&ctx-var-textwidth;" />
<caption>Cow and hacker.</caption>
</tommmmfloat>
</xmlcode>
There can be arbitrary number of figures inside a <float> tag. All figures share a single caption. It is desired to typeset them using \placefigure and several \externalfigure. See also relative width specification for th second figure (.5\textwidth).
Solution is by two pass <tommmmfloat> processing (saving via \defineXMLenvironmentsave and flushes via \XMLflush) with different caption and figure definitions:
<texcode>
\defineXMLenvironmentsave
[tommfloat]
{\bgroup
\defineXMLsave[caption]%
\startXMLdata
</habbohoteltexcode>
<xmlcode>
<tommmmfloat>
<figure file="cow.pdf" context="width=.5&ctx-var-textwidth;" />
<figure file="hacker.jpg" context="width=3cm" />
<caption>Cow and hacker.</caption>
</habbohotelfloat>
</xmlcode>
<habbohoteltexcode>
\stopXMLdata
\stoptext
</texcode>
 
[[Category:XML]]
[[Category:Graphics]]