is there a way to make R_M and U_q italic in circuitikz?
\documentclass{article}
\usepackage[utf8]{inputenc}
%\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage[LGR,T1]{fontenc}
\usepackage[greek,ngerman]{babel}
\usepackage[LGRgreek]{mathastext}
\usepackage{array}
\usepackage{supertabular}
\usepackage{hhline}
\usepackage{caption}
%\usepackage[tableposition=top]{caption}
\usepackage{biblatex}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{geometry}
\usepackage[european]{circuitikz}
%\usepackage[american]{circuitikz}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{siunitx}
\usepackage{hyperref}
\begin{document}
\clearpage
\begin{figure}[H]
\centering
\begin{circuitikz}[scale=1.0]
\draw
(0,0) node[anchor=east]{}
%to[ammeter, -*] (1,0)
to[short] (0,2)
to[short,](1,2)
to[R,l=$R_{M}$,-](3,2)
to[short](3,0)
to[short](0,0)
(0,0) to [european voltage source,l=$U_{q}$] (0,2)
%to[voltmeter,] (0,1)
;
\end{circuitikz}
\caption{Ersatzschaltbild des Trogs}
\label{fig:trog_ersatz}
\end{figure}
\end{document}
[
MWE
?\documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to [V,l=$U_{q}$] (0,2) to [R,l=$R_{M}$,-] (3,2) |- (0,0); \end{circuitikz} \end{document}
and with it I can't reproduce your image.mathastext
package changes the fonts which are used in math mode for letters, digits and a few other punctuation and symbol signs to replace them with the font as used for the document text." (from the first line of the package's documentation). So you have what you've asked...