From 4818b3e68a15f76e7d5b4b63d5dd552837abaa36 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 21 Dec 2012 16:42:55 +0100 Subject: [PATCH] Add (overlay-aware) beamer bold inset --- lib/layouts/beamer.layout | 22 ++++++++++++++++++++-- lib/lyx2lyx/lyx_2_1.py | 7 ++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index 30d79e2d50..7016137c4e 100644 --- a/lib/layouts/beamer.layout +++ b/lib/layouts/beamer.layout @@ -1325,9 +1325,27 @@ End # CHARSTYLES # + +InsetLayout Flex:Bold + LyXType charstyle + LabelString Bold + LatexType command + LatexName textbf + Font + Series bold + EndFont + Argument 1 + LabelString "Action" + MenuString "Action Specifications|S" + Tooltip "Specify the overlay settings (see beamer manual)" + LeftDelim < + RightDelim > + EndArgument +End + InsetLayout Flex:Emphasize LyXType charstyle - LabelString Emphasize + LabelString Emph. LatexType command LatexName emph Font @@ -1373,7 +1391,6 @@ InsetLayout Flex:Structure Tooltip "Specify the overlay settings (see beamer manual)" LeftDelim < RightDelim > - AutoInsert 1 EndArgument End @@ -1445,6 +1462,7 @@ InsetLayout Flex:Invisible Tooltip "Specify the overlay settings (see beamer manual)" LeftDelim < RightDelim > + AutoInsert 1 EndArgument End diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 2e3ba477ae..db7e391ade 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -2483,9 +2483,10 @@ def revert_beamerflex(document): if document.textclass not in beamer_classes: return - new_flexes = {"Emphasize" : "\\emph", "Only" : "\\only", "Uncover" : "\\uncover", - "Visible" : "\\visible", "Invisible" : "\\invisible", - "Alternative" : "\\alt", "Beamer_Note" : "\\note"} + new_flexes = {"Bold" : "\\textbf", "Emphasize" : "\\emph", "Only" : "\\only", + "Uncover" : "\\uncover", "Visible" : "\\visible", + "Invisible" : "\\invisible", "Alternative" : "\\alt", + "Beamer_Note" : "\\note"} old_flexes = {"Alert" : "\\alert", "Structure" : "\\structure"} rx = re.compile(r'^\\begin_inset Flex (.+)$') -- 2.39.2