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

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 was marked as an exact duplicate of an existing question.

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

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.