Using Comment notes the right way

Pavel Sanda sanda at lyx.org
Thu Nov 16 14:22:35 UTC 2023


On Thu, Nov 16, 2023 at 02:00:29PM +0100, Jean-Marc Lasgouttes wrote:
> I do not have time for a detailed comment, but you should really take a hard
> look at branches. They are an incredibly useful tool.

I agree. Just for a inspiration I attach how 3 different branches can be used for
3 different types of notes with the use of local layout. Each of these notes can
be (un)exported by a few clicks.
You just create 3 branches note_right, note_foot, note_inline and define in
document prefs, local layout these:

InsetLayout Branch:note_right
       LabelString           Brancc
       MultiPar              true
       LatexType             command
       LatexName             ledrightnote
  Preamble
    \setlength{\marginparwidth}{4.5cm}
   EndPreamble
End

InsetLayout Branch:note_foot
  LabelString           footc
  LatexType             command
  LatexName        footnote
  MultiPar              true
  RefPrefix             fn
End

InsetLayout Branch:note_inline
  LabelString           prekl
  LatexType             command
  LatexName        " \textcolor{red}"
  MultiPar              true
  RefPrefix             fn
  Preamble
    \usepackage{color}
  EndPreamble
End


Pavel


More information about the lyx-devel mailing list