|
From: Samuel M. S. <sm...@sa...> - 2006-02-09 16:35:27
|
On 09 Feb, 2006, at 08:58, Robert Hetland wrote:
>
> This was a font problem I was having in LaTeX compilation. Many of
> the issues that you and I are having are slightly beyond mpl, and
> have to do with different ways different versions of LaTeX deal
> with fonts, etc. The change to texmanager.py (below) was to not
> load the fontenc package. When this package was loaded, LaTeX was
> producing illegible postscript (for reasons I don't entirely
> understand). This was *separate* from the dvipng hack, which was
> required for me to get decent bitmapped images. The excluding the
> fontenc package is required for EPS (vector) output, so these two
> issues are completely separate.
I have never been able to get .ps files that will convert to .pdf
using adobe distiller. Always get a font related error and distiller
bails.
But the .eps files work fine for converting to .pdf.
So if I comment out fontenc, will that break .eps but fix .ps?
>
> The texmanager.py simply performs a number of LaTeX opperations.
> The best advice I got was to try to do as much of this by hand as
> possible, to see where the potential problems lie. Turn on the
> debug-annoying to see everything that mpl is doing while it creates
> your plots.
>
> -Rob
>
>
> On Feb 9, 2006, at 8:59 AM, Samuel M. Smith wrote:
>
>> what is this doing differently than the 1.6 hack?
>> what is wrong with the eps files?
>>
>>> Also, commenting out line 141 in texmanager:
>>>
>>> self._font_preamble = '\n'.join([r'\usepackage{type1cm}',
>>> cmd,
>>> # r'\usepackage[T1]{fontenc}', #
>>> The guilty line
>>> r'\usepackage{textcomp}'])k
>>>
>>> allowed me to save EPS files that work very well.
>>>
>>> Finally, for those of you interested in editing EPS files in
>>> Illustrator, you need to worry about the absence of the Computer
>>> Modern fonts in Adobe products. This link (really work checking
>>> out if you do scientific graphics on a Mac) explains how to get
>>> everything working for Illustrator CS and CS2:
>>
>
> -----
> Rob Hetland, Assistant Professor
> Dept of Oceanography, Texas A&M University
> p: 979-458-0096, f: 979-845-6331
> e: he...@ta..., w: http://pong.tamu.edu
>
**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************
|