TobiasZawada / texfrag

Emacs package for previewing LaTeX fragments such as in doxygen comments.
GNU General Public License v3.0
68 stars 4 forks source link

LaTeX does not accept the UTF8 Byte Order Mark. #11

Closed TobiasZawada closed 5 years ago

TobiasZawada commented 5 years ago

texfrag-region may not adapt the coding system for the LaTeX buffer unmodified to the coding system for the source buffer. In UTF coding the byte order mark must be removed. Otherwise LaTeX fails.

Maybe the LaTeX buffer should always be recoded to UTF8 without BOM? This also concerns the new :generator feature in texfrag-frag-alist. For that feature it is better to keep the coding system as good as possible.