[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Latex Fonts and Octave
From: |
Ben Abbott |
Subject: |
Re: Latex Fonts and Octave |
Date: |
Thu, 26 Mar 2009 17:10:18 -0400 |
On Thursday, March 26, 2009, at 02:49PM, "Thomas Markovich" <address@hidden>
wrote:
>>
>>
>> Hi all,
>>
>> I have googled around for about a day and haven't figured out how to
>> use latex fonts in octave.
>>
>> What I am doing right now is using psfrag to replace fonts from
>> within the latex document with the graphics all being saved as
>> postscript files. This worked wonderfully; unfortunately the journal
>> that we are submitting to doesn't accept postscript files. Instead,
>> they want everything to be pdfs. To do this what I have to do is
>> convert the postscript to the pdf so that I have it in the right
>> format but I lose the functionality of psfrag. To work around this I
>> have tried to use octave to generate plots for me with the fonts but
>> they aren't very pretty and what's more, the axis labels wander off
>> the graph when I make them big enough to be seen.
>>
>> So, is there a way to use latex fonts (so they're consistent with my
>> paper) in the generation of pdfs? and is there a way to move my axis
>> label up? (our x axis label is \varphi but half of it gets cut off
>> when the size is set to 18)
>>
>> I am currently using
>>
>> x = [-2:0.01:2]*pi;
>>
>> xtick = [-2,-1.5,-1,-0.5,0,0.5,1,1.5,2] * pi;
>>
>> xticklabel = { '{/Symbol -2p}', '{/Symbol -3p/2}', '{/Symbol -p}',
>> '{/Symbol -p/2}', '{0}', '{/Symbol p/2}', '{/Symbol p}', '{/Symbol
>> 3p/2}', '{/Symbol 2p}'};
>>
>> plot (potential1(:,1),potential1(:,2),'k','linewidth',5);
>> set (gca, 'xtick', xtick, 'xticklabel', xticklabel);
>> axis([-7,7,-1.1,1.3])
>> set(0,"Defaulttextfontsize",18)
>> xlabel('\varphi');
>> ylabel('V_+(\varphi)');
>> print('figures/potential1.ps','-deps')
>>
>> to generate my functions but unfortunately there's no pretty fonts.
>>
>> Thanks,
>>
>> Thomas Markovich
Regarding the pdf requirement, do you imply that your publisher is using
pdflatex, or that he requires the manuscript to be submitted as a pdf document?
If you need a figure compatible with pdflatex, the only solution I can think of
is a little *hack*.
octave:1> plot (1:10)
octave:2> drawnow ("latex", "test.tex")
Be aware, due to limitations of the latex terminal, gnuplot might complain. The
resulting file "test.tex" is a LaTeX picture.
Ben
- Latex Fonts and Octave, Thomas Markovich, 2009/03/26
- Re: Latex Fonts and Octave,
Ben Abbott <=
- Re: Latex Fonts and Octave, John W. Eaton, 2009/03/26
- Message not available
- Re: Latex Fonts and Octave, Ben Abbott, 2009/03/26
- Re: Latex Fonts and Octave, Ben Abbott, 2009/03/26
- Re: Latex Fonts and Octave, Thomas Markovich, 2009/03/26
- Re: Latex Fonts and Octave, Ben Abbott, 2009/03/26
- Re: Latex Fonts and Octave, Thomas Markovich, 2009/03/26
- Re: Latex Fonts and Octave, Ben Abbott, 2009/03/26
- Re: Latex Fonts and Octave, Thomas Markovich, 2009/03/26
- Re: Latex Fonts and Octave, Ben Abbott, 2009/03/26
- Re: Latex Fonts and Octave, LUK ShunTim, 2009/03/27