On Wed, Aug 12, 2009 at 7:13 AM, D2Hitman<j.m.gir...@warwick.ac.uk> wrote:
>
> Hi,
>
> I am trying to use a text label with a new line in the middle and then save
> the figure to .eps
>
> text(0.5, 0.5, r'a \\ b')
> savefig('test.eps')
>
> This results in:
>
> RuntimeError: LaTeX was not able to process your file:
> Here is the full report generated by LaTeX:
>
> This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6)
> entering extended mode
> (/tmp/tmpkRUaxb.tex
> LaTeX2e <2005/12/01>
> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang,
> noh
> yphenation, basque, bulgarian, coptic, welsh, czech, slovak, german,
> ngerman, d
> anish, esperanto, spanish, catalan, galician, estonian, finnish, french,
> greek,
>  monogreek, ancientgreek, croatian, hungarian, interlingua, ibycus,
> indonesian,
>  icelandic, italian, latin, mongolian, dutch, norsk, polish, portuguese,
> romani
> an, russian, slovenian, uppersorbian, serbian, swedish, turkish, ukenglish,
> ukr
> ainian, loaded.
> (/usr/share/texmf/tex/latex/base/article.cls
> Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
> (/usr/share/texmf/tex/latex/base/size10.clo))
> (/usr/share/texmf/tex/latex/type1cm/type1cm.sty)
> (/usr/share/texmf/tex/latex/psnfss/helvet.sty
> (/usr/share/texmf/tex/latex/graphics/keyval.sty))
> (/usr/share/texmf/tex/latex/psnfss/courier.sty)
> (/usr/share/texmf/tex/latex/base/textcomp.sty
> (/usr/share/texmf/tex/latex/base/ts1enc.def))
> (/usr/share/texmf/tex/latex/geometry/geometry.sty
>
> Package geometry Warning: Over-specification in `h'-direction.
>    `width' (614.295pt) is ignored.
>
>
> Package geometry Warning: Over-specification in `v'-direction.
>    `height' (794.96999pt) is ignored.
>
> ) (/usr/share/texmf/tex/latex/psfrag/psfrag.sty
> (/usr/share/texmf/tex/latex/graphics/graphics.sty
> (/usr/share/texmf/tex/latex/graphics/trig.sty)
> (/usr/lib/texmf/tex/latex/config/graphics.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvips.def)))
> (/usr/share/texmf/tex/latex/graphics/graphicx.sty)
> (/usr/share/texmf/tex/latex/graphics/color.sty
> (/usr/lib/texmf/tex/latex/config/color.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> No file tmpkRUaxb.aux.
> (/usr/share/texmf/tex/latex/base/ts1cmr.fd)
> (/usr/share/texmf/tex/latex/psnfss/ot1pnc.fd) <tmpkRUaxb.eps>
>
> ! LaTeX Error: Something's wrong--perhaps a missing \item.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.31 \includegraphics*[angle=0]{tmpkRUaxb.eps}
>
> [1] (./tmpkRUaxb.aux) )
> (see the transcript file for additional information)
> Output written on tmpkRUaxb.dvi (1 page, 2980 bytes).
> Transcript written on tmpkRUaxb.log.
>
> Is it a problem that it is using pdftex instead of pslatex?

Yes.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to