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

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

1 Answer 1

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.