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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
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

Code, edit and compile here:
\documentclass{article}
\usepackage{amsmath}
\let\Re\relax
\DeclareMathOperator{\Re}{Re}
\begin{document}
This is $\Re(x)$.
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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