Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mathematica2mono

0 views
Skip to first unread message

Mitch Murphy

unread,
Nov 16, 2005, 2:33:15 AM11/16/05
to
why does mathematica insist on using its own mathematica2mono font
for "(" and ")" when i've tried a hundred different ways to have all
my text in Times when i export a graphic to pdf ?

are there any undocumented options for Export["a.pdf", expr] ? i've
tried {"IncludeSpecialFonts" -> True} from eps format. that doesnt
work either.

-------------------------

ts = {FontFamily -> "Times", FontWeight -> "Plain", FontSize -> 18,
FontSlant -> "Italic"};

(*FontSubstitutions -> {"Mathematica2" -> "Times"}*)

p = Plot[Evaluate[Table[LegendreP[n, x], {n, 5}]], {x, -1, 1},
Prolog -> {AbsoluteThickness[2]},
PlotStyle -> {Red, Yellow, Green, Blue, Violet},
Epilog -> {
Text["P1(x)", {-.6, -.75}, TextStyle -> ts],
Text["P2(x)", {.1, -.6}, TextStyle -> ts],
Text["P3(x)", {.45, -.55}, TextStyle -> ts],
Text["P4(x)", {.65, -.5}, TextStyle -> ts],
Text["P5(x)", {.9, -.4}, TextStyle -> ts]
}
];

Export["legendre.pdf", %];

-------------------------

i'm not trying to print the greek alphabet upside down, i just want
to get a character from the ascii 128 set ...

Mitch

John Fultz

unread,
Nov 17, 2005, 4:21:01 AM11/17/05
to
We use our own fonts because we want the parentheses to display
consistently whether they're being displayed at normal height, as in your
example, or whether they're being stretched vertically (and similarly for
brackets and curly braces).

But the behavior is easy to turn off. Choose Format->Option Inspector...,
set the scope to global, and look for the "OperatorSubstitution" option.
Set it to False. Then re-evaluate the graphics-producing commands, and
re-run the Export[] command again.

Sincerely,

John Fultz
jfu...@wolfram.com
User Interface Group
Wolfram Research, Inc.

Mitch Murphy

unread,
Nov 17, 2005, 4:21:46 AM11/17/05
to
On Nov 16, 2005, at 02:28, Mitch Murphy wrote:
> why does mathematica insist on using its own mathematica2mono font
> for "(" and ")" when i've tried a hundred different ways to have all
> my text in Times when i export a graphic to pdf ?


here's the answer i got from wolfram tech support ...

"We use our own fonts because we want the parentheses to display
consistently whether they're being displayed at normal height, as in your
example, or whether they're being stretched vertically (and similarly for
brackets and curly braces).

But the behavior is easy to turn off. Choose Format->Option Inspector...,
set the scope to global, and look for the "OperatorSubstitution" option.
Set it to False. Then re-evaluate the graphics-producing commands, and
re-run the Export[] command again."

it works.

Mitch

Chris Chiasson

unread,
Nov 17, 2005, 4:22:33 AM11/17/05
to
Mitch,

Your question is (sort-of) addressed in three ways in two different
threads from a while back. If you can't obtain what you need after
reviewing the threads, feel free to post again.

http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/thread/5ff7fab1d1f525a/7f69d0188395200e?q=tool-chain&rnum=1#7f69d0188395200e

http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/thread/325a13365acde622/f51f7e91af77ec14?q=export+font+substitution&rnum=3#f51f7e91af77ec14

You could also try pointing certain Adobe software packages directly to
the font files included with the Mathematica installation. You wil have
to be a little clever in tricking whatever software you can find into
embedding the fonts within the file format of your choice.

AFAIK, EPS font embedding does work from Mathematica.

The short story is, WRI should work on embedding fonts into PDFs and
other formats, like SVG!! :-]

Regards,
--
http://chrischiasson.com/contact/chris_chiasson

0 new messages