From: Thibaut Cuvelier Date: Sat, 7 Jan 2023 02:59:22 +0000 (+0100) Subject: LyXHTML: add explicit HTMLTag for titles. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=051c5f27284f00c20e95c5732bcfb04632c7cb18;p=features.git LyXHTML: add explicit HTMLTag for titles. This way, LyX can generate semantic tags instead of a generic
. --- diff --git a/lib/layouts/beamer.layout b/lib/layouts/beamer.layout index 95519ccd6f..216b487692 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 ba28ec4489..eaad3b5578 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 03f76df057..5198243c7c 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 0d817d005e..e5d76944c3 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 77ebe919db..257ea3921e 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 a1c0aee126..3473f465c9 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 7f85afeb96..cfbc58b2cc 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 61e763db2d..e237fb7a2d 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 fd945dae06..383f41471c 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 41dd2ebd97..d55b987a54 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 dad3425e7b..2094b29b53 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 9fa80cbdbc..62c1a471e6 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