Le 23/03/2012 18:55, Richard Heck a écrit :
On 03/23/2012 11:02 AM, Pavel Sanda wrote:
I am finding the Branches function to be incredibly useful for adding
notes and questions to shared documents. I would like to know if there
is a way to have specific formats applied to certain branches when
exporting to PDF. In particular, I would like to have the text
highlighted, but it would also be useful if the text appeared in a
special color, emphasized, boldface, etc.
This is not currently possible. I would need something similar, but
its not clear to me what is the right way. It would be possible, for
example, to define specific TeX snippet for a given branch, which is
put just before and after each branch inset. It looks somewhat hackish
and perhaps not usable for normal users. (?)
We could make sure that a layout can define the insetstyle
Branch:mybranch, that tells how the latex output should work. This might
even work right now (but I doubt it).
One idea would be to allow every Flex inset to be a branch inset, in the
sense that it would appear in the branch menu and could be turned on
and off.
I would really prefer to avoid this. I think we have to keep some
semantics to our object and avoid the "let's everything be possible"
syndrom.
OTOH, it might make sense to merge the concepts of notes and branches.
People may want to print with and without some notes also. I am not sure
though what the merged inset would be called. And if you cannot find a
good name, your concept is not clear enough :)
Is there any reason to forbid specific insets to be "branchable" (and
thus
introducing "Branch 1" construct)?
Just to simplify UI, really. You'd have a very long list of "branches"
if every type of inset were included.
+1.
One thing I would like to have with branches is 'reversed branch', which
are active when the branch is inactive. It is probably just a matter of
adding a boolean 'inverse' to InsetBranch.
JMarc