On Monday 28 December 2009 13:50:39 rgheck wrote:
> On 12/28/2009 11:02 AM, Steve Litt wrote:
> > On Monday 28 December 2009 06:18:25 Pieter Claassen wrote:
> >> I am trying to build a custom style/minipage environment for
> >> comments/warnings/tips. However, many other collaborators in the
> >> documentation project are not Lyx/Latex boffins so I cannot really ask
> >> them to install custom extensions to Lyx/Latex.
> >>
> >> Currently I use a Box with a minipage environment, but this has to be
> >> customised based on whether it is a tip/warning or note that I am
> >>   producing.
> >>
> >> What is the easiest way to achieve this?
> >>
> >> Thanks,
> >> Pieter
> >
> > Hi Pieter,
> >
> > I've done it numerous ways. The best way I did it was to create a basic
> > LaTeX command called "callouttitleL" converted to LyX command
> > CalloutTitle and LaTeX environment callouttextL converted to LyX
> > environment CalloutText. Using these, you can have a text with an
> > arbitrary title. Three such arbitrary titles are "Note", "Tip" and
> > "Warning". I created custom LaTeX and LyX environments for those special
> > cases.
> >
> > Here's the code:
> 
> You can put the preamble code into the layout, and then you only have to
> deal with one file: the module.

Hi Richard,

I'm not sure what you mean. The only file I deal with is my layout file.

If you mean putting a Preamble/EndPreamble pair inside a LyX environment, I 
never do that because it can fail at the worst possible time. I documented 
that a year or two ago on the lyx-users list. I always keep my LaTeX defs and 
my LyX defs completely separate, with only the LatexName from the LyX def 
linking them.

I have to learn how to use modules before my next book. Layouts have been 
working well for me, but I understand modules are even better.

Thanks

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt

Reply via email to