Closed fvanmaele closed 4 years ago
I think the presence of "äquivalent" is a red herring. The UnicodeDecodeError
arises when plasTeX is trying to read the output of latex
trying to compile your math, before plasTeX will try to turn it into images. The core reason while this fails seem to be plasTeX messing up with xypic code before calling LaTeX. Specifically it doesn't seem to like \xymatrix@C
, and turns it into xymatrix \C
. I have no idea why, and probably only Kevin could answer.
@kesmit13 a minimized example is:
\documentclass{article}
\usepackage[all]{xy}
\begin{document}
\[
\xymatrix@C=9pc{X\ar[r]^{f}_{f_{1},\ldots,f_{n}\in k[T_{1},\ldots,T_{m}]} & Y\ar[r]^{g}_{g_{1},\ldots,g_{r}\in k[T_{1}',\ldots,T_{m}']} & Z}
\]
\end{document}
The generated images.tex
contains
\[ \xymatrix \C =9pc{X\ar [r]^{f}_{f_{1},\ldots ,f_{n}\in k[T_{1},\ldots ,T_{m}]} & Y\ar [r]^{g}_{g_{1},\ldots ,g_{r}\in k[T_{1}',\ldots ,T_{m}']} & Z} \]
I'll try to improve on error reporting here (one cannot say the current behavior is very enlightening). But I must say I don't see much future in continuing using this obsolete package. You would have much more fun using tikzcd, which is also easier to use with plasTeX. I also don't see much future in using the XHTML renderer and its image creation strategy, but that's more debatable I guess.
Fixed in 89d0f26. This was actually the same issue as #36.
I recieve the following errors on a longer .tex file:
https://gist.github.com/3661f05bd02bac0ada8a47c09e70887a (Note: This is a concatenated file with
latexpand
, due toWARNING: Could not find any file named <plasTeX.TeXFragment object at 0xb5c7723c>
errors.)Complete output: https://gist.github.com/37d4cbe5764ded697bab58b285bee90c
pdflatex
output: https://gist.github.com/fvanmaele/8518908fdf7be9d3faf504b94020012aIt's hard to identify where these errors originate; removing "äquivalent" from https://gist.github.com/fvanmaele/3661f05bd02bac0ada8a47c09e70887a#file-alggeo1-flt-L1065 appears to result in a succesful process, though "äquivalent" is used in other places.