Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.01k stars 957 forks source link

with --listings, character `è` becomes `é` #324

Closed daamien closed 1 year ago

daamien commented 1 year ago

More French problems :)

In the eisvogel_listing_style section here https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/eisvogel.tex#L772

As decribed here:

https://en.wikibooks.org/wiki/LaTeX/Source_Code_Listings#Encoding_issue

@Wandmalfarbe: Also would you be open to add support for more UTF8 characters in this list or do you want to keep as short as possible ?

Wandmalfarbe commented 1 year ago

Ah, nice find! I used the Wiki you linked as an inspiration. I think Eisvogel and the Wiki have the wrong definition for È... Could you also change that here, please?

Also would you be open to add support for more UTF8 characters in this list or do you want to keep as short as possible ?

Feel free to add as many as you like (in a separate PR). I don't think the compilation time will increase that much, but I'm no expert at that. I think the benefits of more supported characters in Listings outweigh the Possibility of an increased compilation time.