[LyX/master] DocBook: add support for short titles.

Thibaut Cuvelier tcuvelier at lyx.org
Wed Feb 17 21:50:01 UTC 2021


commit ba672f7f7971cd50a11f452ea075277a113c93ff
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sun Feb 14 06:35:13 2021 +0100

    DocBook: add support for short titles.
    
    Currently, the DocBook output is not valid. This is solved by the next two commits.
---
 lib/layouts/scrclass.inc    |    5 +++++
 lib/layouts/stdinsets.inc   |    1 +
 lib/layouts/stdsections.inc |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/lib/layouts/scrclass.inc b/lib/layouts/scrclass.inc
index 8b86026..1e340e8 100644
--- a/lib/layouts/scrclass.inc
+++ b/lib/layouts/scrclass.inc
@@ -142,6 +142,7 @@ Style Addpart
 		LabelString   "Short Title|S"
 		Tooltip       "The part as it appears in the table of contents/running headers"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 End
 
@@ -153,6 +154,7 @@ Style Addchap
 		LabelString   "Short Title|S"
 		Tooltip       "The chapter as it appears in the table of contents/running headers"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 End
 
@@ -164,6 +166,7 @@ Style Addsec
 		LabelString   "Short Title|S"
 		Tooltip       "The section as it appears in the table of contents/running headers"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 End
 
@@ -318,6 +321,7 @@ InsetLayout Caption:Above
 		LabelString   "Short Title|S"
 		Tooltip       "The caption as it appears in the list of figures/tables"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 	HTMLStyle
 		div.float-caption {
@@ -341,6 +345,7 @@ InsetLayout Caption:Below
 		LabelString   "Short Title|S"
 		Tooltip       "The caption as it appears in the list of figures/tables"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 	HTMLStyle
 		div.float-caption {
diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc
index 7168686..1379f1c 100644
--- a/lib/layouts/stdinsets.inc
+++ b/lib/layouts/stdinsets.inc
@@ -694,6 +694,7 @@ InsetLayout Caption:Standard
 		LabelString   "Short Title|S"
 		Tooltip       "The caption as it appears in the list of figures/tables"
 		InsertCotext  1
+        DocBookTag    titleabbrev
 	EndArgument
 	HTMLStyle
 		div.float-caption {
diff --git a/lib/layouts/stdsections.inc b/lib/layouts/stdsections.inc
index d776a8d..2a58b22 100644
--- a/lib/layouts/stdsections.inc
+++ b/lib/layouts/stdsections.inc
@@ -33,6 +33,7 @@ Style Part
 		Tooltip       "The part as it appears in the table of contents/running headers"
 		InsertCotext  1
 		IsTocCaption  1
+        DocBookTag    titleabbrev
 	EndArgument
 	Font
 	  Series              Bold
@@ -75,6 +76,7 @@ Style Chapter
 		Tooltip       "The chapter as it appears in the table of contents/running headers"
 		InsertCotext  1
 		IsTocCaption  1
+        DocBookTag    titleabbrev
 	EndArgument
 	Font
 	  Series              Bold
@@ -114,6 +116,7 @@ Style Section
 		Tooltip       "The section as it appears in the table of contents/running headers"
 		InsertCotext  1
 		IsTocCaption  1
+        DocBookTag    titleabbrev
 	EndArgument
 	Font
 	  Series              Bold


More information about the lyx-cvs mailing list