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.

Possible Duplicate:
Define additional math operators to be typeset in roman

The trace of a matrix is often written as "Tr [matrix] ", but there does not seem to be a naive LaTeX symbol for this.

The trace is defined as the sum on the main diagonal.

share|improve this question

marked as duplicate by Andrey Vihrov, dmckee, egreg, Mico, cmhughes Nov 12 '11 at 0:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
Do you mean \DeclareMathOperator{\Tr}{Tr}? –  Andrey Vihrov Nov 11 '11 at 23:17
    
@AndreyVihrov Yeah. I think I do. –  dmckee Nov 11 '11 at 23:18

1 Answer 1

I prefer the following definition:

\usepackage{amsmath}
\DeclareMathOperator{\Tr}{Tr}
share|improve this answer
5  
The \mathrm is automatically issued by \DeclareMathOperator. –  egreg Nov 11 '11 at 23:23
    
@egreg you are right; thanks –  Boris Nov 11 '11 at 23:42
2  
Whoever down voted this, please provide some info as to what exactly is wrong with this answer. I find it useful to know why things are wrong and not just that they are wrong. –  Peter Grill Nov 11 '11 at 23:45

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