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?
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.
\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.
align
environment from the amsmath package btw.
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.