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?


2 Answers 2


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.

  • 1
    Cant I include text inside math like $ \math some text $
    – user570593
    Apr 16, 2012 at 22:50
  • 5
    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, 2012 at 22:56
  • Interesting, didn't know it is deprecated. I always use the align environment from the amsmath package btw.
    – thundersteele
    Apr 17, 2012 at 1:20
  • Thanks for pointing out the difference between $ and $$,. I did not know about that Feb 7, 2022 at 15:23
  • Do I need space after $?
    – alper
    Mar 5, 2022 at 14:09

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .