]> git.lyx.org Git - features.git/commitdiff
Add (overlay-aware) beamer bold inset
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Dec 2012 15:42:55 +0000 (16:42 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Dec 2012 15:42:55 +0000 (16:42 +0100)
lib/layouts/beamer.layout
lib/lyx2lyx/lyx_2_1.py

index 30d79e2d50d219204f65850da9adee5c030ea44d..7016137c4ef93c6bcdb53b2788e2a73f9885f6f3 100644 (file)
@@ -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
 
index 2e3ba477aefceac4c1044600307e8f0836e5032e..db7e391adedf3bc9664d70adfc6e5bd2a1af0bfe 100644 (file)
@@ -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 (.+)$')