Line breaks and figure titles in structure

Steve Rickaby srickaby at wordmongers.demon.co.uk
Thu Jan 5 10:38:00 PST 2006


At 12:15 pm -0500 5/1/06, Bernard Aschwanden wrote:

>The easiest solution is to set up the EDD to support everything...
>
>In the EDD define something like this:
>
>Figure
>	Caption, Image
>
>Caption
>	<TEXT>
>
>Image
>	code for image
>
>
>Then attach paragraph formatting to the caption however you want, but add a prefix of \r to put a line break at the end of the paragraph.
>
>Now you get this:
>
>Figure 1: Some caption\r
>ANCHORED_FRAME\p
>
>
>The 'end' of the paragraph is now after the anchored frame. The entire formatting assigned to the paragraph for caption appears (with numbering etc.) before the text the author types.
>
>I've got this working in my DITA template and it's really nice. Even handles indents and more correctly. For example, if I need to indent because I have a 'task' within a 'task' I can do so. I can number then based on context and more.

Bernard, as I read it, this is *exactly* what I want to do. Thanks for this information.
-- 
Steve



More information about the framers mailing list