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
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!
-- Zapp Brannigan, Futurama (season 1, episode 4)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
Declaring upright e, i, and pi in Computer Modern mathmode
you could use \mathrm{ei}.
Computer Modern Roman provides an upright italic font shape. Try:
Code: Select all
\fontshape{ui}\selectfont ei
Stefan
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Declaring upright e, i, and pi in Computer Modern mathmode
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!
-- Zapp Brannigan, Futurama (season 1, episode 4)
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- 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
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Declaring upright e, i, and pi in Computer Modern mathmode
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.
-- Zapp Brannigan, Futurama (season 1, episode 4)