div.lyxtoc-4 { margin: 0em 0em 0em 1em; }
div.lyxtoc-5 { margin: 0em 0em 0em 1em; }
div.lyxtoc-6 { margin: 0em 0em 0em 1em; }
+ a.tocentry {
+ text-decoration: none;
+ color: black;
+ }
+ a.tocentry:visited { color: black; }
a.tocarrow {
font-weight: bold;
text-decoration: none;
// Now output TOC info for this entry
Paragraph const & par = it->dit().innerParagraph();
+
+ string const attr = "href='#" + par.magicLabel() + "' class='tocentry'";
+ xs << html::StartTag("a", attr);
+
// First the label, if there is one
docstring const & label = par.params().labelString();
if (!label.empty())
ours.for_toc = true;
Font const dummy;
par.simpleLyXHTMLOnePar(buffer(), xs, ours, dummy);
- xs << " ";
+
+ xs << html::EndTag("a") << " ";
+
// Now a link to that paragraph
string const parattr = "href='#" + par.magicLabel() + "' class='tocarrow'";
xs << html::StartTag("a", parattr);