LaTeX bleg

Mar. 16th, 2009 10:36 am
gusl: (Default)
[personal profile] gusl
I have a "logit" inside an expression, but I don't want it to look like l-o-g-i-t are variables.
For exp, it works to use \exp... but unfortunately \logit is not recognized.

(no subject)

Date: 2009-03-16 05:46 pm (UTC)
From: [identity profile] stepleton.livejournal.com
\mathrm{logit}

or roll your own command to use in math mode (put in preamble):

\DeclareMathOperator{\logit}{logit}

(no subject)

Date: 2009-03-16 05:46 pm (UTC)
From: [identity profile] wjl.livejournal.com
you want \operatorname{logit}. or alternatively, i usually just use \mathit{whatever} for anything that's a single variable and not a sequence of them.

see also http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfunction if you really care about getting it "right".

(no subject)

Date: 2009-03-17 04:09 am (UTC)
From: [identity profile] bhudson.livejournal.com
I usually use \newcommand{\logit}{\mathop{\mathrm{logit}}}}}}}}}}}}} (and then remove braces as needed). I'm amused that there are two different solutions before me.

(no subject)

Date: 2009-03-21 08:11 pm (UTC)
From: [identity profile] spoonless.livejournal.com
Whenever I run across that issue, I just do {\rm logit}. Not sure if this is the proper way, but it works. And it's interesting that others have other ways of doing it above. Now I'm curious what \mathit and \mathrm are... maybe you need that if you're not already in math mode?

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags