GeneralSubscript in the text displayed italic...

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Subscript in the text displayed italic...

Post by kostoglotov »

Hi, me again... ;)
When I use subscript in the text it always looks like italic...
example: T$_{m}$
is that normal?
Thanks
a.k.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Subscript in the text displayed italic...

Post by localghost »

Include the package fixltx2e and write text subscripts.

Code: Select all

T\textsubscript{m}
An alternative is to use the amsmath package and continue writing subscripts in in-line mathematical mode.

Code: Select all

T$_\text{m}$
Information about the packages and their documentations can be found on CTAN.


Best regards
Thorsten¹
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Subscript in the text displayed italic...

Post by kostoglotov »

Cheers
User avatar
FrankZA
Posts: 14
Joined: Wed Oct 17, 2007 1:02 pm

Subscript in the text displayed italic...

Post by FrankZA »

I simply added the following in my preamble.

Code: Select all

\newcommand*{\superscript}[1]{\ensuremath{^\textrm{{\scriptsize #1}}}}
\newcommand*{\subscript}[1]{\ensuremath{_\textrm{{\scriptsize #1}}}}
\newcommand*{\tinysuperscript}[1]{\ensuremath{^\textrm{{\tiny #1}}}}
\newcommand*{\tinysubscript}[1]{\ensuremath{_\textrm{{\tiny #1}}}}
I then just use the new commands for subscripts that are not mathematical. No need to use extra packages. The tiny versions let you make smaller sub/superscripts if you need them (such as when the text is small anyway e.g. large tables).

Of course, you could simply give the commands a new, shorter name if you wish to write less.
TeXnicCenter 1RC, LEd 0.53, MikTeX 2.8, Windows XP (SP3)
Post Reply