[LyX/master] DocBook: implement iopart.
Thibaut Cuvelier
tcuvelier at lyx.org
Sat Nov 28 03:45:50 UTC 2020
commit 12d512d4e40dcfe42c5d417ab407f1304cffa6a9
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Sat Nov 28 05:08:58 2020 +0100
DocBook: implement iopart.
---
development/autotests/invertedTests | 1 +
lib/layouts/iopart.layout | 23 ++++++++++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/development/autotests/invertedTests b/development/autotests/invertedTests
index 3571a39..1d6d76c 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -514,6 +514,7 @@ export/templates/Articles/Int._Journal_of_Modern_Physics_(C|D)_docbook5
export/templates/Articles/Journal_of_the_Acoustical_Society_of_America_%28JASA%29_docbook5
export/templates/Articles/Astronomy_%26_Astrophysics_docbook5
export/templates/Articles/American_Psychological_Association_%28APA%29_docbook5
+export/templates/Articles/Institute_of_Physics_%28IOP%29_docbook5
# - Empty article!?
export/templates/Articles/Hebrew_Article_%28KOMA-Script%29_docbook5
# - Empty figure. Broken references. Float notes not implemented (how to do it?).
diff --git a/lib/layouts/iopart.layout b/lib/layouts/iopart.layout
index 6ae48da..dd6fe80 100644
--- a/lib/layouts/iopart.layout
+++ b/lib/layouts/iopart.layout
@@ -170,6 +170,12 @@ Style Address
Font
Shape Italic
EndFont
+ DocBookTag address
+ DocBookTagType paragraph
+ DocBookWrapperTag author
+ DocBookWrapperTagType inline
+ DocBookWrapperMergeWithPrevious true
+ DocBookInInfo always
End
@@ -180,6 +186,12 @@ Style Email
Font
Shape Up
EndFont
+ DocBookTag email
+ DocBookTagType paragraph
+ DocBookWrapperTag author
+ DocBookWrapperTagType inline
+ DocBookWrapperMergeWithPrevious true
+ DocBookInInfo always
End
@@ -209,6 +221,11 @@ Style Abstract
Series Bold
Size Large
EndFont
+ DocBookAbstract true
+ DocBookInInfo always
+ DocBookWrapperTag abstract
+ DocBookWrapperMergeWithPrevious true
+ DocBookTag para
End
@@ -295,9 +312,9 @@ Style Acknowledgments
Series Bold
Size Normal
EndFont
- DocBookTag para
- DocBookWrapperTag acknowledgements
- DocBookSection true
+ # TODO: For IOP, this is rather a title than a paragraph style. But it's not in the TOC, so not much can be done.
+ DocBookTag para
+ DocBookAttr role='acknowledgments'
End
More information about the lyx-cvs
mailing list