Re: [Matplotlib-users] TeX and lucidabr
Il giorno 30 set 09, alle ore 17.01, Jouni K. Seppänen ha scritto: > If you do > > matplotlib.rcParams['text.latex.preamble'] = [r'\usepackage > {lucidabr}'] > > does it start working? I eventually managed to get it work; thanks for your help ! For the record: 'text.latex.preamble': [r'\usepackage[T1]{fontenc}', r'\usepackage {lucidabr}'] Ciao ~m -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
Marco Cabizza writes: >> \ >> u >> s >> e Sounds like the value of your text.latex.preamble got interpreted as a list of one-character strings and not a list of one longer string. What exactly do you have in the rc file as the contents of tex.latex.* variables in the file? What does matplotlib.rcParams['text.latex.preamble'] return? If you do matplotlib.rcParams['text.latex.preamble'] = [r'\usepackage{lucidabr}'] does it start working? -- Jouni K. Seppänen http://www.iki.fi/jks -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
Il giorno 30 set 09, alle ore 15.13, Darren Dale ha scritto: > 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 -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
On Wed, Sep 30, 2009 at 7:52 AM, Marco Cabizza 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 ? 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 -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
Marco Cabizza writes: > 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 ? No, it shouldn't do that. Run rm ~/.matplotlibrc/tex.cache/*, then run your script once, and take a look at the tex file created in the tex.cache directory. Can LaTeX compile it directly? -- Jouni K. Seppänen http://www.iki.fi/jks -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
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 ? Ciao ~m -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] TeX and lucidabr
On Tue, Sep 29, 2009 at 3:28 PM, Marco Cabizza wrote: > 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 -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users