Hi Janet,

I agree with your suggestion, and I can't think of a better approach.

Cheers, Jean

We don't have a convention, so I'll make one up on the spot. I'm cc'ing Jean in case she has thoughts on this when she gets back.

In order to put a caption on a code block, it needs to be in its own text frame. Make the text frame span the full width of the text area. Use OOoComputerCode paragraph style within in the code block. You might find it useful to define a frame style for code blocks, so you don't have to format each one. We can incorporate that style the next time we update the template.

Put the caption "above" the frame (it will appear within the frame but above the text). Use "Example" for the category name. (Rick, if that doesn't fit what you're doing let me know, and we can come up with a better label. I'd prefer to use "Code Example", but the Category field doesn't seem to allow spaces.) Then you should be able to make cross-references to it. "Example" will show up under "Type" in the Fields dialog box.

Reply via email to