aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/outputs/io_out/latex.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sisudoc/outputs/io_out/latex.d')
-rw-r--r--src/sisudoc/outputs/io_out/latex.d14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/sisudoc/outputs/io_out/latex.d b/src/sisudoc/outputs/io_out/latex.d
index 8e7b37c..1562fae 100644
--- a/src/sisudoc/outputs/io_out/latex.d
+++ b/src/sisudoc/outputs/io_out/latex.d
@@ -494,6 +494,20 @@ template outputLaTeX() {
"$2".strip
).strip
);
+ /+ ↓ a note of a special series (*, *1, +1 ...). \footnote[n] takes a
+ number, so the mark is set as \thefootnote for this one note,
+ and the counter put back, so that the numbered series does not
+ move.
+ +/
+ _txt = replaceAll!((m) {
+ import std.array : replace;
+ string _mark = m["char"];
+ string _name = _mark.replace("*", "a").replace("+", "p");
+ return "\\hypertarget{noteref_" ~ _name ~ "}{}"
+ ~ "{\\renewcommand{\\thefootnote}{" ~ _mark ~ "}"
+ ~ "\\footnote{\\label{note_" ~ _name ~ "}" ~ m["note"].strip ~ "}"
+ ~ "\\addtocounter{footnote}{-1}}";
+ })(_txt, rgx.inline_notes_al_special_char_note);
}
return _txt;
}