Using Comment notes the right way
Daniel
xracoonx at gmx.de
Fri Nov 17 07:43:40 UTC 2023
On 2023-11-16 15:22, Pavel Sanda wrote:
> 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
I think that I have figured out how this works after a while. Nice that
one can do this with LyX.
I know that you might not have intended to answer my original point, so
my comment might not be an answer to yours either, but this approach
seems a bit too complicated for a simple commenting feature.
It still seems to me that LyX should provide a ready to use commenting
feature that can be globally toggled on and off in the export. And it
seems to me that the "Comment" note is on the right track here. It just
needs a facelift (some nice label color and background color) and some
additional features (toggling, free spacing) and it would be pretty
close to ideal as a default commenting feature.
Another thing that would make Comments more comment like is to mark them
with the name (and even color) of the author in the label. Well, I am
getting carried away again...
(I take back my suggestion that it could be toggled on a per comment
basis. I have not seen such a feature elsewhere and maybe branches are
good enough for such a specific feature.)
Daniel
More information about the lyx-devel
mailing list