daqana / tikzDevice

A R package for producing graphics output as PGF/TikZ code for use in TeX documents.
https://daqana.github.io/tikzDevice
132 stars 26 forks source link

Remove fontenc for lualatex/xelatex, fix docs #190

Closed karldw closed 5 years ago

karldw commented 5 years ago

Tests aren't passing, but that was true before I made these changes.

rstub commented 5 years ago

Thanks for the contribution. Looks reasonable at first sight. Do you have a test case where using fontenc.sty together with LuaTeX (or XeTeX) causes problems?

karldw commented 5 years ago

Good question. People swear up and down that fontenc is incompatible, but I haven't actually seen an example.

karldw commented 5 years ago

@rstub, apparently it's fine as long as you're careful with the options you load. Much more detail here: https://tex.stackexchange.com/questions/470976/are-there-cases-where-fontenc-luatex-or-xetex-cause-problems (Many thanks to the stackexchange folks!)