Skip to content

Subscript text in LaTeX

June 25, 2013

How to produce subscript text in LaTeX without entering “math mode” seems to be a common question on tex.stackexchange.com. There are various reasons for wanting to do so. I wanted to do it to avoid the italics it produces and have the subscript in the same font as the rest of the document.

Heres a little macro which does the job

\newcommand{\mysubscript}[1]{\raisebox{-.4ex}{\scriptsize #1}}

To write something simply write some\mysubscript{thing}.

You could always shorten the macro name to \myss{}.

About these ads

From → Uncategorized

One Comment

Trackbacks & Pingbacks

  1. Boolean in LaTeX macros | Insights of a PhD student

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: