End
InsetLayout TOC
+ HTMLTag h2
HTMLStyle
div.toc {
margin: 2em 0em;
border-width: 2px 0px;
padding: 1em 0em;
}
- div.tochead { font-size: x-large; font-weight: bold; }
+ h2.tochead { font-size: x-large; font-weight: bold; }
div.lyxtoc-0 {
margin: 2em 0em 0em 0em;
font-size: xx-large;
LangPreamble
\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
EndLangPreamble
+ HTMLTag h2
HTMLStyle
div.lyxtoc-flat {
margin: 0em 0em 0em 1em;
odocstringstream ods;
XHTMLStream xs(ods);
+ InsetLayout const & il = getLayout();
+ string const & tag = il.htmltag();
xs << html::StartTag("div", "class='toc toc-floats'");
- xs << html::StartTag("div", tocattr)
+ xs << html::StartTag(tag, tocattr)
<< toclabel
- << html::EndTag("div");
+ << html::EndTag(tag);
Toc::const_iterator it = toc.begin();
Toc::const_iterator const en = toc.end();
xs << html::StartTag("div", "class='toc'");
// Title of TOC
+ InsetLayout const & il = getLayout();
+ string const & tag = il.htmltag();
docstring title = screenLabel();
Layout const & lay = buffer().params().documentClass().htmlTOCLayout();
string const & tocclass = lay.defaultCSSClass();
string const tocattr = "class='tochead " + tocclass + "'";
- xs << html::StartTag("div", tocattr)
+ xs << html::StartTag(tag, tocattr)
<< title
- << html::EndTag("div");
+ << html::EndTag(tag);
// with lists of listings, at least, there is no depth
// to worry about. so the code can be simpler.