[Tex/LaTex] How to use AMS Euler

fontsmath-mode

% What to do here 

\begin{document} 

This is good integration. 

$$\displaystyle \int x dx = \frac{x^2}{2}$$

\end{document} 

I don't know much about LaTeX so I am going to need some spoon feeding.

I want text to appear in normal font. But math to appear in AMSEuler Font.

I don't want to make any changes inside the document.

Best Answer

Just add either \usepackage{euler} or \usepackage{eulervm} to your document's preamble:

\documentclass{article}
\usepackage{euler}
\begin{document} 
This is good integration. 
\[
\int x \,dx = \frac{x^2}{2}+c
\]
\end{document} 

enter image description here

The eulervm package includes many revisions by Zapf to the original Euler fonts. If you use the eulervm package, you will probably want to load it with the options euler-digits and euler-hat-accent, i.e., as

\usepackage[euler-digits,euler-hat-accent]{eulervm}

Incidentally, the use of $$ ... $$ to generate display-math equations is heavily deprecated; it's much better to use \[ and \], as I do in the example above. For much more on this subject, please see the postings Why is \[ ... \] preferable to $$ and What are the differences between $$, \[, align, equation and displaymath?


Addendum: There is no text font that's matched perfectly to AMS Euler. If you provide the directive \usepackage{concrete} in the preamble, you'll get the Concrete Roman text font family. Concrete Roman and AMS Euler were used together (very successfully, I'd say) in the textbook Concrete Mathematics, 1st ed. 1988, 2nd. ed. 1994, by Ronald Graham, Donald Knuth, and Oren Patashnik. However, be forewarned that Concrete Roman is a "raster font" and therefore won't look very good on screen. If the font is generated at 600 dpi, it'll look just fine in print; it's only the on-screen look that will likely disappoint. Other text fonts that are known to work well with AMS Euler are Palatino, Aldus, and Melior; perhaps not coincidentally, all three are creations of Hermann Zapf, the designer of the AMS Euler fonts. To set Palatino as the text font of your document, you could, e.g., issue the command \usepackage{newpxtext}.

Related Question