LyXHTML: add explicit HTMLTag for titles.

This way, LyX can generate semantic <hX> tags instead of a generic <div>.
This commit is contained in:
Thibaut Cuvelier 2023-01-07 03:59:22 +01:00
parent fb4a26577e
commit 051c5f2728
12 changed files with 20 additions and 1 deletions

View 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*

View 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

View File

@ -284,6 +284,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End

View File

@ -215,6 +215,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End

View File

@ -59,6 +59,7 @@ Style Foilhead
Series Bold
Size Large
EndFont
HTMLTag h2
End

View 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

View File

@ -246,6 +246,7 @@ Style Poemtitle
Font
Series Bold
EndFont
HTMLTag h2
End

View File

@ -337,6 +337,7 @@ Style Section
Series Bold
EndFont
TocLevel 1
HTMLTag h2
DocBookTag title
DocBookTagType paragraph
End

View File

@ -256,6 +256,7 @@ Style Section
LabelString "Section Option"
Tooltip "Optional arguments to the section command (see powerdot manual)"
EndArgument
HTMLTag h2
End
###

View File

@ -54,6 +54,7 @@ Style Section
InsertCotext 1
IsTocCaption 1
EndArgument
HTMLTag h2
DocBookTag title
DocBookTagType paragraph
DocBookSectionTag section

View 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

View File

@ -46,6 +46,7 @@ Style Part
Series Bold
Size Huge
EndFont
HTMLTag h2
End
Style Abstract