## LaTeX forum ⇒ Math & Science ⇒ declaremathoperator command for Re operator which has a problem in typesetting Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
MATH
Posts: 2
Joined: Thu Mar 11, 2021 11:03 pm

### declaremathoperator command for Re operator which has a problem in typesetting

Hi, I want to define Re operator by \declaremathoperator command in latex but the operator isn't typeset in Roman.please help me

Stefan Kottwitz
Posts: 9679
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

\Re is already defined. You can undefine it and then declare it again as math operator:

\documentclass{article}
\usepackage{amsmath}
\let\Re\relax
\DeclareMathOperator{\Re}{Re}
\begin{document}
This is $\Re(x)$.
\end{document}

Stefan

MATH
Posts: 2
Joined: Thu Mar 11, 2021 11:03 pm
Hello Mr Kottwitz
Thank you for your very worthwhile response.
As you help us and solve our problems, I hope God help you.
God bless you