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

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, yo', 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

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.