On 10/11/2012 04:47 AM, Steve Litt wrote:
On Wed, 10 Oct 2012 21:53:34 -0400, Steve Litt said:
Hi all,

My document class is created with a layout file derived from the Book
document class. This layout is over 600 lines long -- way too
long to change the parent document class and then change
everything else. My solution needs to keep the derivation from Book.

I need two environments with which to represent a diary. The first,
called diaryheader, has an indented first line and a large (5ex or so)
vertical space before it. The date and the following text goes on it.
Following paragraphs pertaining to the same date are in environment
diaryparagraph, which has no indentation or vertical space before it.
So far I made the following skeleton:

Style DiaryParagraph
        CopyStyle Standard
End

Style DiaryHeader
        CopyStyle DiaryParagraph
End

Later I'll be filling in the LyX and LaTeX to adopt the proper
appearance, and I'm not worried about that right now. But one thing
confuses me. How do I make sure that any DiaryHeader paragraph is
automatically, by default, followed by a DiaryParagraph paragraph, and
any DiaryParagraph paragraph is also followed, automatically by
default, by another DiaryParagraph paragraph?

I'm pretty sure this is possible because I could swear I've seen
paragraphs automatically followed by other types of paragraphs, or the
same type of paragraph.

So how do I do it?

Thanks

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance
Putting "LatexType Environment" in the LyX definition causes the next
paragraph to be of the same environment as the current one. This
doesn't give me the feature of the next paragraph after a DiaryHeader
being a DiaryParagraph, but at least consecutive DiaryParagraphs are
automatically the same style.

I don't think we have a "NextStyle" tag, but it would be useful. File
an enhancement request if you wish.

rh

Reply via email to