Group Abstract Group Abstract

Message Boards Message Boards

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

Export Graphics for Latex

Posted 10 years ago
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 10 years ago
Attachments:

Mikel,

You can also consider selecting the cell in Mathematica and then going to File > Save Selection As or File > Print Selection. In the second one, you can print to a PDF (I have found that this second option is the best way of getting a multiple-page PDF, but you may not need that for your figure). The first option is useful because it provides many other formats.

In LaTeX you can use \includegraphics to put the file in your document. This function is included in the graphix package, if I recall correctly.

OL.

POSTED BY: Otto Linsuain
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