On Wednesday 29 August 2001 09:37, you wrote:
> On Wed, 29 Aug 2001 00:10:36 -0400 wrote Steve Litt 
<[EMAIL PROTECTED]>:
> > I'd like to use labels for my Warning and Sidebar environments, if that's
> > possible. With Warning the text of it will always be "Warning". With
> > Sidebars it will be whatever is appropriate. I'd like to have the labels
> > print above the environment text, centered.
> >
> > Is this something appropriate for labels, or am I barking up the wrong
> > tree?
>
> Did you already browse the layout files that come with LyX? Alongside with
> the description in the Extension and Customization guide they are a good
> start for such kind of work.
>
> Maybe an example for a "keywords" command helps too:
>
> Style Keywords
>   Margin                First_Dynamic
>   NextNoIndent                 1
>   LatexType             Command
>   LatexName                keywords
>   LabelType                Static
>   LabelString           "Keywords: "
>   # label font definition
>   LabelFont
>     Series                Bold
>   EndFont
> End
>
> "Keywords: " is written outomatically by LyX everytime you set a paragraph
> to the Keywords style. Be aware that in LaTeX, the command \keywords must
> be defined to do the same (e.g. \newcommand{\keywords}[1]{\textbf{Keywords:
> #1}).
>
> For varying labels (Sidebars) look how this is done for the description
> environment.
>
> --
> [EMAIL PROTECTED]

Thanks Guenter!

I tried your code (right out of your email). It worked perfectly in LyX, but 
when I did View->Postscript, it messaged "The operation resulted in an empty 
file". If I had to guess, command \keywords didn't get an argument, but I 
wouldn't know how to tweak the style so it would.

Thanks

Steve

Reply via email to