Math & ScienceDerivatives in Beamer

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Derivatives in Beamer

Post by cgnieder »

This seems to be the same problem as the here: fontspec/mathspec ruins my parentheses with beamer. The solution outlined there works here as well:

Code: Select all

% arara: xelatex
\documentclass{beamer}

\AtBeginDocument{%
  \DeclareSymbolFont{pureletters}{T1}{lmss}{\mddefault}{it}%
  }

\begin{document}
\begin{frame}
\[
  f'(x).
\]
\end{frame}
\end{document}
AFAIK it is not a good idea to use fontenc with XeLaTeX.
site moderator & package author

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply