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

easy question. I am writing some maths and I want to write the epigraph of a function so I type $epi(\varphi)$ but the epi comes out in italics. I want it to come out as $\log(x)$ would except obviously I cannot use $\epi$. How do I do it?

share|improve this question

marked as duplicate by Torbjørn T., Alan Munn, egreg, Mike Renfro, Loop Space Mar 20 '12 at 16:45

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.

Thank you! So I'll create a math operator then. – Nik Mar 20 '12 at 15:20
We've closed this as a duplicate to make it easier for others looking for how to do this to find the answers. – Loop Space Mar 20 '12 at 16:46
up vote 3 down vote accepted

If you do:


then \epi will work just as \log does. I believe amsmath also provides:


which does the same thing.

share|improve this answer
and use \DeclareMathOperator*{\epi}{epi} if you want it to place limits above and below in displayed math. – daleif Mar 20 '12 at 15:26

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