Skip to content

Commit

Permalink
LaTeX template: disable ` ? and ! ` ligatures.
Browse files Browse the repository at this point in the history
These are often triggered by accident in languagegs that
use ` `` ` for end quote (e.g. German).

See jgm/citeproc#54.
  • Loading branch information
jgm committed Feb 18, 2021
1 parent 53cf829 commit 24d7cd5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/templates/default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ $endif$
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\DisableLigatures[?,!]{encoding=T1} % disable ?` and !` ligatures
}{}
$if(indent)$
$else$
Expand Down
1 change: 1 addition & 0 deletions test/lhs-test.latex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\DisableLigatures[?,!]{encoding=T1} % disable ?` and !` ligatures
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
Expand Down
1 change: 1 addition & 0 deletions test/lhs-test.latex+lhs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\DisableLigatures[?,!]{encoding=T1} % disable ?` and !` ligatures
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
Expand Down
1 change: 1 addition & 0 deletions test/writer.latex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\DisableLigatures[?,!]{encoding=T1} % disable ?` and !` ligatures
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
Expand Down
1 change: 1 addition & 0 deletions test/writers-lang-and-dir.latex
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\DisableLigatures[?,!]{encoding=T1} % disable ?` and !` ligatures
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
Expand Down

0 comments on commit 24d7cd5

Please sign in to comment.