Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > I have recently faced this as well (from bugzilla): > > The issue here is that, in many cases, the environment of the branch is not > > the environment one actually wants. > > > > We have now branch styling via "InsetLayout Branch:". > > What remains is to add some tag (or better reuse different one, which one?), > > then user can simply create "empty style" branch. > > Or we could even create some BranchPlain style to be used/applied generally. > > > > What do you think? > > How about some InsetFlex branch companion for inline issues?
Looking at the code the issue is more subtle than I thought and seems it can't be solved just by styling. The problem is that once we set itemize inside branch it will also generate enclosing \begin{itemize} \end{itemize} by calling generic InsetText::latex so we generate deeper level. Is InsetFlex any better solution in this regard? Otherwise we stick with workaround by putting ERT with \item inside branch. Pavel