On 10/01/2009 10:47 AM, Bert Douglas wrote:
rgheck wrote:
On 10/01/2009 02:12 AM, Guenter Milde wrote:
On 2009-10-01, Bert Douglas wrote:
How can I keep all lines of a paragraph together?
Put the paragraph in a parbox or minipage.  Insert>Box, configure with
right-click on the "handle" (width = columnwidth).

And if you're doing a lot of these, it'll definitely be worth defining a paragraph layout that will do this automatically.

Can you point me to an example please ?

You can find several such examples in the layout files that come with LyX. Documentation is in chapter five of the Customization manual. The hard part is to figure out what LaTeX you want to generate. You can do this by doing it in LyX as Guenter suggested, then using View>Source to see what LaTeX that produces. Then you can define your layout to generate that LaTeX. E.g., something like:

Style Member
    CopyStyle Standard
    LaTeXType Environment
    LaTeXName member
    Preamble
        \newenvironment{member}{...beginning code...}{...ending code...}
    EndPreamble
EndStyle

This could be prettied up, but just that much will work.

rh

Reply via email to