Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to change the definition of one of the predefined math operators (\hom).

Is there an equivalent to the \renewcommand statement for operators?

share|improve this question
    
Welcome to TeX.sx! You don't have to sign with your name since it automatically appears in the lower right corner of your post. –  Martin Scharrer Nov 15 '11 at 14:48
    
What do you want to change? –  Andrey Vihrov Nov 15 '11 at 14:48
    
I need the \hom to be uppercase as it seems to be more usual to have "Hom" in german math documents. –  gabriel Nov 15 '11 at 15:09
add comment

1 Answer 1

up vote 9 down vote accepted

I'm not aware of any pendant, but you can use \DeclareMathOperator (not \DefineMathOperator) a second time if you mark the macro as not defined first. However, changing it doesn't make that much sense, because such a math operator is only there to print the operator name in the correct font. You shouldn't add code or arguments to it. See \DeclareMathOperator won't take arguments for more about that.

\documentclass{article}
\usepackage{amsmath}

\let\hom\relax% Set equal to \relax so that LaTeX thinks it's not defined
\DeclareMathOperator{\hom}{HOM}

\begin{document}

$\hom$

\end{document}
share|improve this answer
    
Ah, thanks a lot. This works as I need it. –  gabriel Nov 15 '11 at 15:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.