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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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