14

8

I am using Mathematica 8. I want to label the axes of figure in "Times" font.

```
Plot[Sin[z], {z, -2 Pi, 2 Pi}, Frame -> True,
FrameLabel -> {"z", "a(z)"},
LabelStyle -> Directive[FontSize -> 20, FontFamily -> "Times"]]
```

And the plot is

However in Miktex, when I am using FontStyle, Times then z is different. So I want to replace by

the second one is the default z appearing pdf generarted from .tex file in math mode. So what extra information should be given to Mathematica, besides "Times".

The second Z is Times Italic. To get that in Mathematica add the option

`FontSlant-> Italic`

to your Plot function call. – Sjoerd C. de Vries – 2015-03-02T19:33:32.287did not resolve the problem for me in Mathematica 8 – zenith – 2015-03-02T20:19:23.587

You mean you did not get the italic version of the font? – Sjoerd C. de Vries – 2015-03-02T20:56:36.047

@ Sjoerd Now its been resolved. I made a mistake previously as i added FontSlant-> Italic in Label style. So that it italicized all the tikz labels also. Moreover, the required font was not visible in Mathematica 8.0, but when I saved it in .eps format and seen in the .pdf generated through Miktex it was visible. Thank you – zenith – 2015-03-02T21:12:56.633

If you can wait a couple of days, I'll have an answer for this. It's an accident that I'm doing this at the same time when you asked the question. I didn't even see your question until now.

– Szabolcs – 2015-03-03T00:15:54.060My approach is to use a non-$\LaTeX$ (installed system-wide) font in the

`.tex`

source and pick the same font inMathematica. You can do the`tex`

part either using`pdflatex`

with suitable packages, or`xetex`

,`luatex`

. – Jens – 2015-03-06T16:57:57.817