]> git.lyx.org Git - features.git/commitdiff
LyXHTML: add explicit HTMLTag for titles.
authorThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 7 Jan 2023 02:59:22 +0000 (03:59 +0100)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Sat, 7 Jan 2023 02:59:22 +0000 (03:59 +0100)
This way, LyX can generate semantic <hX> tags instead of a generic <div>.

12 files changed:
lib/layouts/beamer.layout
lib/layouts/egs.layout
lib/layouts/europasscv.layout
lib/layouts/europecv.layout
lib/layouts/foils.layout
lib/layouts/ltugboat.layout
lib/layouts/memoir.layout
lib/layouts/moderncv.layout
lib/layouts/powerdot.layout
lib/layouts/simplecv.layout
lib/layouts/tufte-book.layout
lib/layouts/tufte-handout.layout

index 95519ccd6fb72582d7f8183824ec6bcbd5609b06..216b4876924f09a39809da6e16cf19166aec0307 100644 (file)
@@ -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*
index ba28ec4489db87d73b4681617e65acee59e90204..eaad3b5578e4f76358e09ce4874d73c47f951822 100644 (file)
@@ -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
 
 
index 03f76df057acfd3fb278d86a9c5f6f6bee177fc1..5198243c7c72934c182834a020c88a82c947b589 100644 (file)
@@ -284,6 +284,7 @@ Style Section
          Series        Bold
        EndFont
        TocLevel        1
+    HTMLTag     h2
        DocBookTag  title
        DocBookTagType paragraph
 End
index 0d817d005ec4b383ca366fe743841f8c3227eda2..e5d76944c3d258e71fc6680d0469547545591721 100644 (file)
@@ -215,6 +215,7 @@ Style Section
          Series        Bold
        EndFont
        TocLevel        1
+    HTMLTag     h2
        DocBookTag  title
        DocBookTagType paragraph
 End
index 77ebe919dba3739c9f4a0e7210abb974d5b23d57..257ea3921e1138a950239e88fa0eebfa25d2bb38 100644 (file)
@@ -59,6 +59,7 @@ Style Foilhead
          Series              Bold
          Size                Large
        EndFont
+    HTMLTag               h2
 End
 
 
index a1c0aee126a139ef00962c72f5b85b3e1e7be12d..3473f465c9368775bdba15b8a42b5bb16194f9c4 100644 (file)
@@ -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
 
 
index 7f85afeb960179938d0e2987787cfab65173583d..cfbc58b2cce03a26ea9dedb72965b761e85d6e3d 100644 (file)
@@ -246,6 +246,7 @@ Style Poemtitle
        Font
           Series             Bold
        EndFont
+    HTMLTag               h2
 End
 
 
index 61e763db2da0987100e3552b595984f556dacf9c..e237fb7a2d2bc6483c59b0439bed93ff239a4924 100644 (file)
@@ -337,6 +337,7 @@ Style Section
          Series        Bold
        EndFont
        TocLevel        1
+    HTMLTag         h2
        DocBookTag      title
        DocBookTagType  paragraph
 End
index fd945dae0646c4a2d3f92df7b6fa378fada657c4..383f41471c31b8e11350357838ae9200d99f4b4a 100644 (file)
@@ -256,6 +256,7 @@ Style Section
     LabelString   "Section Option"
     Tooltip       "Optional arguments to the section command (see powerdot manual)"
   EndArgument
+  HTMLTag       h2
 End
 
 ###
index 41dd2ebd97abb1f63db2a6d27aa7be330a10a922..d55b987a54f7853d4b78dcaa04ff73c94f4dc4b2 100644 (file)
@@ -54,6 +54,7 @@ Style Section
                InsertCotext   1
                IsTocCaption   1
        EndArgument
+    HTMLTag               h2
        DocBookTag            title
        DocBookTagType        paragraph
        DocBookSectionTag     section
index dad3425e7be15a348ec729fa60540d1a49430caa..2094b29b534b1e7580585755e853da06cedaabed 100644 (file)
@@ -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
index 9fa80cbdbcddd8fd9fb327b905e75f99d2e3b0c8..62c1a471e64850ce238d46c8793ae8f64ec787e8 100644 (file)
@@ -46,6 +46,7 @@ Style Part
          Series        Bold
          Size          Huge
        EndFont
+    HTMLTag               h2
 End
 
 Style Abstract