if I use beamer class with this code
Code: Select all
Code, edit and compile here:
\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
Code, edit and compile here:
\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