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

It may be a very simple question to people who know.

If I want to type commonly used functions like exponential function exp(x) or sinusoidal function sin(x), I use \exp(x) and \sin(x) in LaTeX and the results looks nice (fonts become different from other non-function characters). However, when I type error function \erf(x), it gives me error messages. If I remove \, it compiles fine but the "erf(x)" fonts just look the same to other non-function characters. Could anyone please tell me how to make the error function fonts look like as exponential function in a math environment? Thanks very much.

share|improve this question

marked as duplicate by Loop Space, tohecz, Seamus, barbara beeton, Werner Aug 17 '12 at 15:10

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.

    
Please take a look at the question I've just linked to. If it answers your question we'll close this as a duplicate of it to help others find the answer quickly. If not, please explain what doesn't work so people can best know how to help you. –  Loop Space Aug 17 '12 at 14:37

1 Answer 1

\DeclareMathOperator\erf{erf}

not every command imaginable are defined by default (assumes amsmath of course)

share|improve this answer

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