commit 76bc063bcd505b83dbacee4021966bc676d21c2d
Author: Thibaut Cuvelier <[email protected]>
Date:   Sat Nov 28 02:15:27 2020 +0100

    DocBook: implement IEEEtran.
---
 development/autotests/invertedTests |    3 +++
 lib/layouts/IEEEtran.layout         |   19 ++++++++++++++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/development/autotests/invertedTests 
b/development/autotests/invertedTests
index 9e8ec54..3571a39 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -519,6 +519,9 @@ 
export/templates/Articles/Hebrew_Article_%28KOMA-Script%29_docbook5
 # - Empty figure. Broken references. Float notes not implemented (how to do 
it?).
 export/templates/Articles/American_Economic_Association_%28AEA%29_docbook5
 
export/templates/Articles/American_Psychological_Association_%28APA%29,_v._7_docbook5
+# - Empty figure. Dedications: IEEE wants them in the preamble, DocBook 
outsie. How to implement biographies?
+#   They should have their own section...
+export/templates/Articles/IEEE_Transactions(.*)_docbook5
 
 Sublabel: docbook poster
 # Posters cannot be properly exported, the LyX documents are too far from
diff --git a/lib/layouts/IEEEtran.layout b/lib/layouts/IEEEtran.layout
index 62c573e..46abb15 100644
--- a/lib/layouts/IEEEtran.layout
+++ b/lib/layouts/IEEEtran.layout
@@ -105,7 +105,7 @@ InsetLayout Flex:IEEE_membership
     Color      green
     Size       Small
   EndFont
-       ResetsFont true
+  ResetsFont true
 End
 
 
@@ -213,6 +213,7 @@ Style Special_Paper_Notice
     Shape      Italic
     Size       Large
   EndFont
+  DocBookTag  subtitle
 End
 
 
@@ -223,6 +224,10 @@ Style After_Title_Text
     Shape      Up
     Size       Normal
   EndFont
+  DocBookTag          para
+  DocBookWrapperTag   dedication
+  DocBookWrapperAttr  role='IEEEaftertitletext'
+  DocBookInInfo       always
 End
 
 
@@ -247,6 +252,8 @@ Style Page_headings
   \DeclareRobustCommand{\foreign@language}[1]{%
     \lowercase{\oldforeign@language{#1}}}
   EndPreamble
+  DocBookTag          titleabbrev
+  DocBookInInfo       maybe
 End
 
 
@@ -262,6 +269,8 @@ Style Publication_ID
     Shape      Up
     Size       Small
   EndFont
+  DocBookTag     releaseinfo
+  DocBookInInfo  always
 End
 
 
@@ -284,6 +293,11 @@ Style Abstract
     Series     Bold
     Size       Small
   EndFont
+  DocBookAbstract       true
+  DocBookInInfo         always
+  DocBookWrapperTag     abstract
+  DocBookWrapperMergeWithPrevious    true
+  DocBookTag            para
 End
 
 
@@ -295,6 +309,7 @@ Style Keywords
   DocBookTagType     paragraph
   DocBookWrapperTag  keywordset
   DocBookInInfo      always
+  DocBookAbstract    false
 End
 
 
@@ -459,4 +474,6 @@ Style Proof
   LabelFont
     Shape      Italic
   EndFont
+  DocBookTag            para
+  DocBookAttr           role='proof'
 End
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to