gvwilson / sdxjs

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

Support older versions of pdfTeX #8

Closed juananpe closed 1 year ago

juananpe commented 1 year ago

In one of my computers I'm using an oldish LaTeX distribution,

➜  en git:(main) ✗ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)

that in turn is using an oldish version of the newunicodechar package. Using that version (or an older one from 2014, for example) we need to add this package \usepackage[utf8]{inputenc} before this one \usepackage{newunicodechar} in order to get correctly formatted UTF-8 characters.

Please, have a look at the results before applying this patch / commit:

image

and after applying the patch:

image

As far as I can tell adding this new line to info/head.tex has not any unwanted effect in those computers running a modern version of LaTeX.