TeX and lucidabr

Hello,

  I'm writing my thesis with the Lucida Bright font ( provided by the lucidabr package ) and I can't seem to get properly rendered fonts in any Matplotlib eps file. Setting the preamble with the rc variable doesn't look like a good idea, I even tried adding lucidabr to texmanager.py but I keep getting Computer Modern text.

  Any ideas ?

Ciao
~m

P.S.: the TeX preamble for lucidabr should be:

\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lucidabr}

Probably setting the preamble in rc is your best option. I added the
note that it is not supported not because it is broken, but because I
don't want the mpl mailing lists to turn into a latex support forum.

Darren

···

On Tue, Sep 29, 2009 at 3:28 PM, Marco Cabizza <marco87@...287...> wrote:

Hello,

   I&#39;m writing my thesis with the Lucida Bright font \( provided by the

lucidabr package ) and I can't seem to get properly rendered fonts in
any Matplotlib eps file. Setting the preamble with the rc variable
doesn't look like a good idea, I even tried adding lucidabr to
texmanager.py but I keep getting Computer Modern text.

   Any ideas ?

Ciao
~m

P.S.: the TeX preamble for lucidabr should be:

\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lucidabr}

The point is that when i put \usepackage{lucidabr} it complains about a missing \begin{document}. Does the text.latex.preamble variable replace the whole LaTeX preamble ?

Ciao
~m

···

Il giorno 30 set 09, alle ore 13.25, Darren Dale ha scritto:

Probably setting the preamble in rc is your best option. I added the
note that it is not supported not because it is broken, but because I
don't want the mpl mailing lists to turn into a latex support forum.

No. Have you looked at texmanager.py? It injects the contents of the
preamble after the default font settings and before \begin{document},
see make_tex. I don't have lucidabr.sty on my system so I cant test
it, but I think you should be able to set a string list in rcparams:

all on one line:
text.latex.preamble :
\usepackage[T1]{fontenc},\usepackage{textcomp},\usepackage{lucidabr}

You may need to clear your tex.cache as Jouni suggests.

Daren

···

On Wed, Sep 30, 2009 at 7:52 AM, Marco Cabizza <marco87@...287...> wrote:

Il giorno 30 set 09, alle ore 13.25, Darren Dale ha scritto:

Probably setting the preamble in rc is your best option. I added the
note that it is not supported not because it is broken, but because I
don't want the mpl mailing lists to turn into a latex support forum.

   The point is that when i put \\usepackage\{lucidabr\} it complains about

a missing \begin{document}. Does the text.latex.preamble variable replace
the whole LaTeX preamble ?

all on one line:
text.latex.preamble :
\usepackage[T1]{fontenc},\usepackage{textcomp},\usepackage{lucidabr}

You may need to clear your tex.cache as Jouni suggests.

  Here's what I get:

\usepackage{courier}

\
u
s
e
p
a
c
k
a

  Just until

\usepackage[papersize={72in,72in}, body={70in,70in}, margin={1in,1in}]{geometry}

  Which looks fine.

~m

···

Il giorno 30 set 09, alle ore 15.13, Darren Dale ha scritto: