with this patch :idx: can be used for the index generation for LaTeX (#18946)

This commit is contained in:
Andreas Rumpf
2021-10-03 07:21:08 +02:00
committed by GitHub
parent 5c4692fad4
commit e9268b52d9
2 changed files with 5 additions and 3 deletions

View File

@@ -406,7 +406,7 @@ proc renderIndexTerm*(d: PDoc, n: PRstNode, result: var string) =
var term = ""
renderAux(d, n, term)
setIndexTerm(d, changeFileExt(extractFilename(d.filename), HtmlExt), id, term, d.currentSection)
dispA(d.target, result, "<span id=\"$1\">$2</span>", "$2\\label{$1}",
dispA(d.target, result, "<span id=\"$1\">$2</span>", "\\nimindexterm{$2}{$1}",
[id, term])
type