Math & Sciencedeclaremathoperator command for Re operator which has a problem in typesetting

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

declaremathoperator command for Re operator which has a problem in typesetting

Post by MATH »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

declaremathoperator command for Re operator which has a problem in typesetting

Post by Stefan Kottwitz »

Welcome to the forum!

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

Code: Select all

\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

declaremathoperator command for Re operator which has a problem in typesetting

Post by MATH »

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
Post Reply