Re: [NTG-context] float combinations
On 14 Apr 2013, at 07:05 , Marco Patzer
On 2013?04?13 Robert Blackstone wrote: (in reply to Alan BRASLAU)
(I tried your liitle code snippet but ConText would not have it.)
He's missing a closing bracket on the \externalfigure[mill] line. Here's a complete example:
\setupexternalfigures [location=default]
\defineitemgroup [subfigure] [lefttext=, stopper=] \setupitemgroup [subfigure] [a, text]
\starttext
\startbuffer Dutch scenery \startsubfigure \startitem A cow \stopitem \startitem A mill \stopitem \stopsubfigure \stopbuffer
\startplacefigure [title=\getbuffer, list=Dutch scenery, reference=fig:scenery] \startcombination \startcontent \externalfigure[cow][width=.5\textwidth] \stopcontent \startcaption a) \stopcaption \startcontent \externalfigure[mill][width=.45\textwidth] \stopcontent \startcaption b) \stopcaption \stopcombination \stopplacefigure
A cow is shown in \in{figure}{a}[fig:scenery] and a mill in \in{figure}{b}[fig:scenery].
\stoptext
Marco= Thank you, Marco, and Alan, for your suggestions.
As I wrote, wherever possible I use combinations for related examples, and they only give problems when the examples are too large to fit on the same page. The solution with itemize does not help here. With small enough figures the results seems not too different from that with Combinations. With large figures stacked vertically the lower one still gets cut off (and with it also the caption when it is placed underneath the figure). If somehow a pagebreak could be inserted between the two items, then this solution would probably work. But I have no idea how to achieve this. Inserting \page between " \startitem A cow\stopitem" and "\startitem A mill \stopitem" changes nothing. Best regards Robert
participants (1)
-
Robert Blackstone