Text Formattinghow can I stop subscript?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

how can I stop subscript?

Post by daviddoji »

Code: Select all

\documentclass[a4paper,12pt]{article} 
\usepackage{color}

\usepackage[english]{babel} 
\usepackage[latin1]{inputenc} 

\begin{document}

Note: If you see \textcolor{red}{broken!} in the R_{htr}, the value

\end{document}
After R_{htr}, I need to write again normal text, not subscripted.

How can I make this?

Thanks in advance.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

how can I stop subscript?

Post by Stefan Kottwitz »

For subscripts in text mode, you can use \textsubscript if you load the fixltx2e package, i.e. with

Code: Select all

\usepackage{fixltx2e}
in the preamble and

Code: Select all

... in the R\textsubscript{htr}, the value ...
in the text.

For common subscripts via _ you need to use math mode, i.e.

Code: Select all

... in the $R_{htr}$, the value ...
Stefan
LaTeX.org admin
daviddoji
Posts: 13
Joined: Wed Sep 19, 2012 12:18 pm

Re: how can I stop subscript?

Post by daviddoji »

Vielen Dank Stefan_K!
Post Reply