Branches and InsetLayout
Richard Kimberly Heck
rikiheck at gmail.com
Thu Nov 16 19:17:57 UTC 2023
On 11/16/23 13:43, Richard Kimberly Heck wrote:
> On 11/16/23 09: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.
>
> Can you post an example file? I'm not getting it. It's really quite
> fantastic if it works.
Found the problem: The use of right_note, with the underscore, seems not
to work. The InsetLayout gets converted to "Branch:read note", with a
space, and then we try to look up "Branch:read_note", with the
underscore. I don't remember why we replace the underscores with spaces,
but this is old behavior.
We seem to need something like the attached.
LabelString does not have any effect for me, and looking at the code
it's clear why. Pavel, do you have some local patch that makes that
work? Should it work? Easy to do, I think.
And it is quite fantastic. I was not aware you could embed branch
content in a command or an environment. It's something I've seen asked
for, and I've always thought it wasn't possible yet.
Riki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-layout-names-for-branches.patch
Type: text/x-patch
Size: 1299 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20231116/c46639dd/attachment.bin>
More information about the lyx-devel
mailing list