On 15.06.05, Paul A. Rubin wrote:
> Rich Shepard wrote:
> >
> >  My goal is to have each title/itemized list as a separate block. If
> >I do not indent the itemized lines, both "chunks" are preceeded by the
> >"block" command and display in separate boxes. As soon as I specify
> >"itemized" for the details, I lose the "block" command for the second
> >chunk. However, if I insert a blank line as a "Standard" environment,
> >the second "Block" command appears; that blank line is eliminated by
> >LyX as soon as the cursor is moved elsewhere.
> >

> ...  make the next line a standard environment (no increase in depth)
> and put in a protected space (C-space or S-C-space).

As current workaround, I'd recommend a pair of {} or a % (latex comment
sign) as ERT instead of the protected space. LaTeX will then see
virtually nothign and not insert any additional space.

However, you are touching an old problem of mine, described in bug report
# 341 ( http://bugzilla.lyx.org/show_bug.cgi?id=341 ) 


I suggest a new tag for layout styles or LatexType "Environment", called
"SeparateEnvironment" or "NextNoAppend" or "NoCompound" that keeps the
\end \begin sequence between consecutive paragraphs of the same layout
style. (Of course defaulting to the current "compound environments"
behaviour.)


Needed for environments that serve as a container for other stuff (that gets
nested inside) and take some action with every new start of an environment
e.g. start a new slide with "LandscapeSlide" and "PortraitSlide" in
seminar.cls, start a new letter with "letter" in dinbrief.cls, or a new
article with "clanek" in the CSTUG bulletin layout. Currently, a dummy
paragraph (say {} in ERT and standard mode) is needed to separate the
environments.

The beamer presentation class adds more examples where a hack is needed
to separate environments of the same type.  Also, the beamer.layout
contains a lot of complicated code (e.g. EndFrame) just to circumvent the
restriction.

Günter



-- 
G.Milde web.de

Reply via email to