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

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
Stefan Kottwitz
Site Admin
Posts: 10360
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