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

Is the cotan function defined somewhere? I cannot find it. It is defined as cotan(x)=cos(x)/sin(x). Should it be \newcommand{\cotan}{\mathrm{cotan}}? I'm suspecting somewhere a declareoperator command or something.

share|improve this question

marked as duplicate by Martin Scharrer May 9 '11 at 10:46

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.

For a function to calculate cotan=cos/sin, \usepackage{fp}... ;-) –  Bruno Le Floch Apr 9 '11 at 12:11

1 Answer 1

Check the amsopn.sty file.

and define the the tag

\def\cotan{\qopname\relax o{cotan}}
share|improve this answer
Easier to use \DeclareMathOparator, see tex.stackexchange.com/questions/671/… –  Caramdir Apr 9 '11 at 3:03
NB: you can use backticks ` to mark your inline code and if you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "101010" on it). –  Caramdir Apr 9 '11 at 3:16

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