Group Abstract Group Abstract

Message Boards Message Boards

0
|
16.3K Views
|
4 Replies
|
4 Total Likes
View groups...
Share
Share this post:
GROUPS:

Export Graphics for Latex

Posted 11 years ago

I have to write scientific article with latex.

I must import some graphics from a Mathematica Notebook. What is the better way to do?

Does anybody know good references with explanations about it?

Thanks

4 Replies

If you have Latin Modern fonts on your system you get a better result with

funs = {Sin[x], Normal[Sin[x] + O[x]^8]}; g = 
 Plot[Evaluate[funs], {x, 0, 2 Pi}, AxesLabel -> {"x", "Sin"}, 
  PlotLegends -> {Style[TraditionalForm[Sin[x]], 
     FontFamily -> "Latin Modern Roman"], 
    Style[Normal[Sin[x] + O[x]^8], 
     FontFamily -> "Latin Modern Roman"]}, 
  BaseStyle -> {FontSize -> 10, FontFamily -> "Latin Modern Roman"}, 
  Frame -> True]

Otherwise try with the Times font family.

POSTED BY: Gianluca Gorni
Posted 11 years ago
Attachments:
POSTED BY: Otto Linsuain

Hi,

is this a Latex or a Mathematica question? If you have a graphic in Mathematica, it is quite straight forward to export to a number of different formats, e.g.

figure=Plot[Sin[x],{x,0,10}];
Export["~/Desktop/SinPlot.jpg",figure]

or

Export["~/Desktop/SinPlot.pdf",figure]

generates files you can embed into Latex documents. It is quite straight forward to google how to embed pdfs into Latex.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard