[LyX/master] Implement new tags in some layouts

Juergen Spitzmueller spitz at lyx.org
Tue Jul 25 10:32:47 UTC 2023


commit 7f4f9a99f06a44f210dbfa8e354d94df45969774
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Jul 25 13:40:23 2023 +0200

    Implement new tags in some layouts
---
 lib/layouts/aa.layout          |   18 +++++++++++++++---
 lib/layouts/acmart.layout      |   20 +++++++++++++++++++-
 lib/layouts/linguistics.module |   16 +++++++++++++++-
 3 files changed, 49 insertions(+), 5 deletions(-)

diff --git a/lib/layouts/aa.layout b/lib/layouts/aa.layout
index 8b23cb5..563c3fa 100644
--- a/lib/layouts/aa.layout
+++ b/lib/layouts/aa.layout
@@ -18,7 +18,7 @@
 # 2013-05-26  Updated for aa.cls version 8.2
 
 
-Format 101
+Format 102
 Columns		2
 Sides		2
 SecNumDepth	3
@@ -289,6 +289,9 @@ InsetLayout "Flex:institutemark"
 	  Size		Small
 	EndFont
 	MultiPar	true
+	AllowedInLayouts
+	    Author
+	EndAllowedInLayouts
 End
 
 
@@ -402,7 +405,10 @@ InsetLayout Flex:Institute
 	Font
 	  Color		textlabel1
 	EndFont
-	ResetsFont true
+	ResetsFont      true
+	AllowedInLayouts
+	    Author
+	EndAllowedInLayouts
 End
 
 
@@ -414,7 +420,10 @@ InsetLayout Flex:E-Mail
 	  Family	Typewriter
 	  Color		textlabel1
 	EndFont
-	ResetsFont true
+	ResetsFont      true
+	AllowedInLayouts
+	    Address
+	EndAllowedInLayouts
 End
 
 
@@ -438,5 +447,8 @@ InsetLayout "Flex:Email"
 	  Size		Small
 	EndFont
 	MultiPar	true
+	AllowedInLayouts
+	    Address
+	EndAllowedInLayouts
 End
 
diff --git a/lib/layouts/acmart.layout b/lib/layouts/acmart.layout
index 25d87e9..547fdf9 100644
--- a/lib/layouts/acmart.layout
+++ b/lib/layouts/acmart.layout
@@ -9,7 +9,7 @@
 # Reviewed following tickets #10722 & #10723
 #          by Jean-Pierre Chrétien <jpc at lyx.org>
 
-Format 101
+Format 102
 
 Provides amscls 1
 Provides amsmath 1
@@ -247,6 +247,9 @@ InsetLayout Flex:Department
   LatexName department
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 InsetLayout Flex:Street_Address
@@ -255,6 +258,9 @@ InsetLayout Flex:Street_Address
   LatexName streetaddress
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 InsetLayout Flex:City
@@ -263,6 +269,9 @@ InsetLayout Flex:City
   LatexName city
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 InsetLayout Flex:Country
@@ -271,6 +280,9 @@ InsetLayout Flex:Country
   LatexName country
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 InsetLayout Flex:State
@@ -279,6 +291,9 @@ InsetLayout Flex:State
   LatexName state
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 InsetLayout Flex:Postal_Code
@@ -287,6 +302,9 @@ InsetLayout Flex:Postal_Code
   LatexName postcode
   LatexType command
   Spellcheck 0
+  AllowedInLayouts
+    Affiliation
+  EndAllowedInLayouts
 End
 
 Style TitleNote
diff --git a/lib/layouts/linguistics.module b/lib/layouts/linguistics.module
index 63fd832..eafea96 100644
--- a/lib/layouts/linguistics.module
+++ b/lib/layouts/linguistics.module
@@ -8,7 +8,7 @@
 
 # Author: Jürgen Spitzmüller <spitz at lyx.org>
 
-Format 101
+Format 102
 
 #
 # Counters
@@ -154,12 +154,18 @@ InsetLayout Flex:Example_Preamble
 	LatexName             expreamble
 	LabelString           "Ex. Preamble"
 	ResetsFont            true
+	AllowedInLayouts
+	    Numbered_Example_(multiline), Numbered_Examples_(consecutive)
+	EndAllowedInLayouts
 End
 
 InsetLayout Flex:Subexample_Preamble
 	CopyStyle	      Flex:Example_Preamble
 	LatexName             subexpreamble
 	LabelString           "Subex. Preamble"
+	AllowedInLayouts
+	    Subexample
+	EndAllowedInLayouts
 End
 
 
@@ -173,6 +179,9 @@ InsetLayout Flex:Subexample_Postamble
 	CopyStyle             Flex:Example_Preamble
 	LatexName             subexpostamble
 	LabelString           "Subex. Postamble"
+	AllowedInLayouts
+	    Subexample
+	EndAllowedInLayouts
 End
 
 
@@ -313,6 +322,11 @@ InsetLayout Flex:GroupGlossedWords
 	LeftDelim             {
 	RightDelim            }
 	ResetsFont            true
+	AllowedInInsets
+	   Flex:Interlinear_Gloss_(2_Lines), Flex:Interlinear_Gloss_(2_Lines)@post:2,
+	   Flex:Interlinear_Gloss_(3_Lines), Flex:Interlinear_Gloss_(3_Lines)@post:2,
+	   Flex:Interlinear_Gloss_(3_Lines)@post:4
+	EndAllowedInInsets
 End
 
 


More information about the lyx-cvs mailing list