The attached patch (thanks to racoon!) is one of my favorite patches that I apply locally. I find it helpful to know the frame numbers of the frames, especially when I'm going back and forth with the PDF output.
The main problem with the patch is that for some reason to get it to work we needed to change: TocLevel 4 to: TocLevel 3 This change causes some annoyances and in theory I don't think it should be needed. However, without the change the LabelString doesn't show up at all. Is it a LyX bug that the LabelString in the patch doesn't show up when TocLevel is set to 4? Any hint on how I can get the desired behavior without changing the TocLevel of Frame? Thanks, Scott
From 7c488df29787c74925a5475cc90ab5ec978bab43 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak <skost...@lyx.org> Date: Thu, 27 Jan 2022 17:11:48 -0500 Subject: [PATCH] beamer.layout: display frame number in LyX display --- lib/layouts/beamer.layout | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index 9c5467b913..7240e3edef 100644 --- a/lib/layouts/beamer.layout +++ b/lib/layouts/beamer.layout @@ -58,6 +58,9 @@ AddToPreamble } EndPreamble +Counter frame +End + # # STANDARD STYLE @@ -478,14 +481,16 @@ End # FRAMES # + Style Frame Category Frames Margin First_Dynamic LeftMargin xx LatexType Environment LatexName frame - LabelString "Frame" - TocLevel 4 + LabelString "Frame \theframe" + LabelCounter frame + TocLevel 3 KeepEmpty 1 NextNoIndent 1 Align Left @@ -543,7 +548,7 @@ End Style PlainFrame CopyStyle Frame - LabelString "Frame (plain)" + LabelString "Frame \theframe (plain)" Argument 3 MenuString "Frame Options" LabelString "Options" @@ -554,7 +559,7 @@ End Style FragileFrame CopyStyle Frame - LabelString "Frame (fragile)" + LabelString "Frame \theframe (fragile)" Argument 3 MenuString "Frame Options" LabelString "Options" @@ -995,7 +1000,8 @@ Style Title BottomSep 1 ParSep 1 Align Center - LabelType No_Label + LabelType Static + LabelString " " Argument 1 LabelString "Short Title|S" Tooltip "Short title which appears in the sidebar/header" @@ -1010,6 +1016,7 @@ Style Title DocBookTag title DocBookTagType paragraph DocBookInInfo maybe + LabelCounter frame End Style Title_(Plain_Frame) -- 2.34.1
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel