1
$\begingroup$

I'm using the fourier package to make my $\LaTeX$ documents look pretty, but they would be even prettier if I could mimic the same font in legends, axis labels etc. in my Matlab plots.

I know there are ways to find-and-replace texts in eps graphics within $\TeX$, but that would require me to specify all the labels in the .tex file as well, which I'd like to avoid if I can.

It's mostly just simple letters - no complicated math markup or anything - so just rendering alphabetical characters in the correct font would be sufficient.

I have tried for example

l = legend(planetNames); % PlanetNames is a cell array with strings set(l, 'FontName', 'utopia'); % Tried Utopia as well with same result 

but instead of the Utopia font, I get some ugly, monospaced placeholder font. How do I make this work?

I'm running Ubuntu 11.10, Matlab 7.12.0 (R2011a) and TeX Live 2009.

  • 0
    @AsafKaragila: I agree that this might not be on-topic here - and I don't mind being migrated if there is somewhere this question is more likely to get an answer. However, even though StackOverflow might really be a match here, I'm afraid this question concerns languages and features that won't be used by most users there, so the question will likely drown in all the talk about Java, Ruby, Python and C#... Posting at math.stackexchange.net was an attempt to find a smaller niche where people will actually know what I'm talking about :P And I do think this site is a better match than tex, btw.2012-04-09

1 Answers 1

0

MATLAB comes with its own packages of TeX packages. You can add to them external packages.

Hence, your only choice is to approach MathWorks and ask for a feature to be added.