Dear (La)TeX friends.
Well, the headline says it all. I got the idea of this from Will Robertson's blog, but I have no idea of what to write when I am not using the upright maths font Euler.
Thanks in advance!
Text Formatting ⇒ Declaring upright e, i, and pi in Computer Modern mathmode
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Declaring upright e, i, and pi in Computer Modern mathmode
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Declaring upright e, i, and pi in Computer Modern mathmode
Hi,
you could use \mathrm{ei}.
Computer Modern Roman provides an upright italic font shape. Try:
But this does not apply to \pi.
Stefan
you could use \mathrm{ei}.
Computer Modern Roman provides an upright italic font shape. Try:
Code: Select all
\fontshape{ui}\selectfont ei
Stefan
LaTeX.org admin
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Declaring upright e, i, and pi in Computer Modern mathmode
Hi Stefen.
was definitely not was I was looking for; my entire index and my headlines are typeset in upright italic mode. 
Well, never mind that, if I use \mathrm{e} and \mathrm{i}, respectively, I get what I want.
Is there no way of getting an upright mathmode pi with the Computer Modern font?
Thanks in advance!
Code: Select all
\fontshape{ui}\selectfont ei

Well, never mind that, if I use \mathrm{e} and \mathrm{i}, respectively, I get what I want.
Is there no way of getting an upright mathmode pi with the Computer Modern font?
Thanks in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Declaring upright e, i, and pi in Computer Modern mathmode
Just use curly braces to limit the effect:svend_tveskaeg wrote:my entire index and my headlines are typeset in upright italic mode.
Code: Select all
{\fontfamily{cmss}\fontshape{ui}\selectfont upright italic} normal shape
Stefan
LaTeX.org admin
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Declaring upright e, i, and pi in Computer Modern mathmode
Thank you very much!
I am wondering if there is a way of getting an upright mathmode pi with the Computer Modern font?
Update: Table 134 in "The Comprehensive LaTeX Symbol List" gave me the answer.
I am wondering if there is a way of getting an upright mathmode pi with the Computer Modern font?
Update: Table 134 in "The Comprehensive LaTeX Symbol List" gave me the answer.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)