# Inline equation in latex with text

Hi I want to write an inline equation with some texts like

Amplitude = 0.3 * Max_Amp_Of_Signal


How can I do it with LaTeX?

-

## migrated from stackoverflow.comApr 17 '12 at 14:44

This question came from our site for professional and enthusiast programmers.

Enclose your formula in single $, as follows: Text text text $ \some \math \commands $ more text text text. Note that if you use double $$ instead, the formula will appear in it's own line, and the text will continue below. - Cant I include text inside math like$ \math some text – user570593 Apr 16 '12 at 22:50 Oh, yes, you can just put text in the equation. Use \text{YOUR TEXT HERE} so that it looks properly and spaces are reproduced. You might have to include \usepackage{amsmath} in your preamble in order to use this command. – thundersteele Apr 16 '12 at 22:56 Interesting, didn't know it is deprecated. I always use the align environment from the amsmath package btw. – thundersteele Apr 17 '12 at 1:20 It depends also on how you want your "variables" to appear; if you want them in the normal text font, then \textrm{Amplitude} = 0.3 \cdot \textrm{Max\_Amp\_Of\_Signal}\$

is sufficient. Notice the \_ to get the underscore, because _ has a special meaning in LaTeX.