LaTeX forum ⇒ Math & Sciencedeclaremathoperator 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

Postby MATH » Thu Mar 11, 2021 11:23 pm

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9679
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Fri Mar 12, 2021 10:55 am

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
LaTeX.org admin

MATH
Posts: 2
Joined: Thu Mar 11, 2021 11:03 pm

Postby MATH » Mon Mar 15, 2021 10:24 am

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

Thanks for your time
Yours sincerely


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 7 guests