Skip to content

Commit a6e7a07

Browse files
committed
Handling of backticks in bibliography
When looking at the bibliography we see that there is a difference in the handling of backticks and single quotes between LaTeX and the other formats. In LaTeX they are translated in a similar way as nowadays is done in Markdown but in the other formats they are shown literally. The bibliography items are,correctly, not run through the markdown processor as the entries are in LaTeX style. By replacing the backticks and single quotes by the required HTML entities in the rapper script the problem is solved.
1 parent 8ac72d9 commit a6e7a07

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/html/bib2xhtml.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ sub html_ent {
119119
s/\\rceil\b/⌉/g;
120120
s/\\lfloor\b/⌊/g;
121121
s/\\rfloor\b/⌋/g;
122+
s/``/“/g;
123+
s/''/”/g;
124+
s/`/‘/g;
125+
s/'/’/g;
122126
}
123127
$bdebug = 0;
124128
foreach (@ARGV) {

0 commit comments

Comments
 (0)