[LyX/master] LyXHTML: add explicit HTMLTag for titles.
Thibaut Cuvelier
tcuvelier at lyx.org
Sat Jan 7 02:01:54 UTC 2023
commit 051c5f27284f00c20e95c5732bcfb04632c7cb18
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Sat Jan 7 03:59:22 2023 +0100
LyXHTML: add explicit HTMLTag for titles.
This way, LyX can generate semantic <hX> tags instead of a generic <div>.
---
lib/layouts/beamer.layout | 4 ++++
lib/layouts/egs.layout | 4 +++-
lib/layouts/europasscv.layout | 1 +
lib/layouts/europecv.layout | 1 +
lib/layouts/foils.layout | 1 +
lib/layouts/ltugboat.layout | 2 ++
lib/layouts/memoir.layout | 1 +
lib/layouts/moderncv.layout | 1 +
lib/layouts/powerdot.layout | 1 +
lib/layouts/simplecv.layout | 1 +
lib/layouts/tufte-book.layout | 3 +++
lib/layouts/tufte-handout.layout | 1 +
12 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout
index 95519cc..216b487 100644
--- a/lib/layouts/beamer.layout
+++ b/lib/layouts/beamer.layout
@@ -291,6 +291,7 @@ Style Part
Color Latex
EndFont
TocLevel -1
+ HTMLTag h2
End
Style Section
@@ -335,6 +336,7 @@ Style Section
EndFont
LabelStringAppendix "\Alph{section}"
TocLevel 1
+ HTMLTag h3
End
Style Section*
@@ -354,6 +356,7 @@ Style Section*
EndArgument
LaTeXParam *
HTMLInToc 0
+ HTMLTag h3
End
Style Subsection
@@ -398,6 +401,7 @@ Style Subsection
EndFont
LabelStringAppendix "\arabic{section}.\arabic{subsection}"
TocLevel 2
+ HTMLTag h4
End
Style Subsection*
diff --git a/lib/layouts/egs.layout b/lib/layouts/egs.layout
index ba28ec4..eaad3b5 100644
--- a/lib/layouts/egs.layout
+++ b/lib/layouts/egs.layout
@@ -13,7 +13,7 @@ Format 99
Columns 2
Sides 1
PageStyle Plain
-Provides natbib 1
+Provides natbib 1
Style Standard
@@ -50,6 +50,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
+ HTMLTag h2
End
@@ -70,6 +71,7 @@ Style Subsection
Shape Up
EndFont
TocLevel 2
+ HTMLTag h3
End
diff --git a/lib/layouts/europasscv.layout b/lib/layouts/europasscv.layout
index 03f76df..5198243 100644
--- a/lib/layouts/europasscv.layout
+++ b/lib/layouts/europasscv.layout
@@ -284,6 +284,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
+ HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End
diff --git a/lib/layouts/europecv.layout b/lib/layouts/europecv.layout
index 0d817d0..e5d7694 100644
--- a/lib/layouts/europecv.layout
+++ b/lib/layouts/europecv.layout
@@ -215,6 +215,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
+ HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End
diff --git a/lib/layouts/foils.layout b/lib/layouts/foils.layout
index 77ebe91..257ea39 100644
--- a/lib/layouts/foils.layout
+++ b/lib/layouts/foils.layout
@@ -59,6 +59,7 @@ Style Foilhead
Series Bold
Size Large
EndFont
+ HTMLTag h2
End
diff --git a/lib/layouts/ltugboat.layout b/lib/layouts/ltugboat.layout
index a1c0aee..3473f46 100644
--- a/lib/layouts/ltugboat.layout
+++ b/lib/layouts/ltugboat.layout
@@ -63,6 +63,7 @@ Style Section
Size Normal
EndFont
TocLevel 1
+ HTMLTag h2
End
@@ -84,6 +85,7 @@ Style Subsection
Size Normal
EndFont
TocLevel 2
+ HTMLTag h3
End
diff --git a/lib/layouts/memoir.layout b/lib/layouts/memoir.layout
index 7f85afe..cfbc58b 100644
--- a/lib/layouts/memoir.layout
+++ b/lib/layouts/memoir.layout
@@ -246,6 +246,7 @@ Style Poemtitle
Font
Series Bold
EndFont
+ HTMLTag h2
End
diff --git a/lib/layouts/moderncv.layout b/lib/layouts/moderncv.layout
index 61e763d..e237fb7 100644
--- a/lib/layouts/moderncv.layout
+++ b/lib/layouts/moderncv.layout
@@ -337,6 +337,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
+ HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End
diff --git a/lib/layouts/powerdot.layout b/lib/layouts/powerdot.layout
index fd945da..383f414 100644
--- a/lib/layouts/powerdot.layout
+++ b/lib/layouts/powerdot.layout
@@ -256,6 +256,7 @@ Style Section
LabelString "Section Option"
Tooltip "Optional arguments to the section command (see powerdot manual)"
EndArgument
+ HTMLTag h2
End
###
diff --git a/lib/layouts/simplecv.layout b/lib/layouts/simplecv.layout
index 41dd2eb..d55b987 100644
--- a/lib/layouts/simplecv.layout
+++ b/lib/layouts/simplecv.layout
@@ -54,6 +54,7 @@ Style Section
InsertCotext 1
IsTocCaption 1
EndArgument
+ HTMLTag h2
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag section
diff --git a/lib/layouts/tufte-book.layout b/lib/layouts/tufte-book.layout
index dad3425..2094b29 100644
--- a/lib/layouts/tufte-book.layout
+++ b/lib/layouts/tufte-book.layout
@@ -104,6 +104,8 @@ Style Chapter
Series Bold
Size Huge
EndFont
+ # h1 is used for the document title.
+ HTMLTag h2
DocBookTag title
DocBookSectionTag chapter
End
@@ -135,6 +137,7 @@ Style Section
Series Bold
Size Larger
EndFont
+ HTMLTag h3
DocBookTag title
DocBookSectionTag section
End
diff --git a/lib/layouts/tufte-handout.layout b/lib/layouts/tufte-handout.layout
index 9fa80cb..62c1a47 100644
--- a/lib/layouts/tufte-handout.layout
+++ b/lib/layouts/tufte-handout.layout
@@ -46,6 +46,7 @@ Style Part
Series Bold
Size Huge
EndFont
+ HTMLTag h2
End
Style Abstract
More information about the lyx-cvs
mailing list