[OS X TeX] SVG to LaTeX?
Maarten Sneep
maarten.sneep at xs4all.nl
Wed Jun 28 23:14:42 CEST 2006
After liberal cutting of text,
On 28-jun-2006, at 22:52, Alain Schremmer wrote:
> ! Text line contains an invalid character.
> l.266 ^^fe^^ff^^@<^^@
> ?^^@x^^@m^^@l^^@
> ^^@v^^@e^^@r^^@s^^@i^^@o^^@n^^@=^^@"^^...
>
> ? ^^@v^^@e^^@r^^@s^^@i^^@o^^@n^^@=^^@"^^...
>
> What is going on?
>
> I see the light at the end of the tunnel but I am afraid I need
> some serious help here.
I see two options here:
1) the svg file is encoded in UTF-16. Opening the file is a text
editor (TextWrangler, SubEthaEdit) will allow you to determine this.
2) The file includes some binary material.
I guess it is #1, feff seems like a byte order mark for UTF-16, but I
may be mistaken.
The solution is to treat the file as binary (encode in Base-64, and
extract in multiple stages). I think the code to do that was already
posted before in this thread.
Of course, this assumes the error is in or near the filecontents
environment. The second part of your problem is that the program
svg2pdf must be installed and available for this to work at all, but
that problem occurs _after_ the extraction. The filecontents must be
placed in the preamble, before the \begin{document} command.
Just a few loose ideas.
Maarten
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list