TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

I prefer the following definition:

share|improve this answer
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
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.