if I use beamer class with this code
Code: Select all
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{newtxtext,newtxmath}
\usepackage{tikz}
\usefonttheme[onlymath]{serif}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\node {$g(f(x))$};
\end{tikzpicture}
\end{frame}
\end{document}
When I use the same code with article class like this:
Code: Select all
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{newtxtext,newtxmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node {$g(f(x))$};
\end{tikzpicture}
\end{document}
Does anyone have an idea about this?
Regards
Tom