gvwilson / sdxjs

Software Design by Example with JavaScript
Other
49 stars 12 forks source link

Disable TeX ligatures (show double dashes correctly) #15

Closed juananpe closed 1 year ago

juananpe commented 1 year ago

When using the fontenc package, LaTeX automatically converts two hyphens to a single hyphen. This behavior is specially frustrating when the PDF explicitly refers to how to use double dashes to handle command line parameters:

image image

This patch aims to fix that behavior:

image image

See: https://tex.stackexchange.com/questions/36692/how-do-i-prevent-latex-from-creating-en-dash-and-em-dash/36702