How to add space in text of the equation Jupyter notebook?

Viewed 4145

I want to write an equation in Jupyter notebook's markdown cell which contains text with space. I tried writing the following.

\begin{equation*}
e^{i\pi} + 1 + some text = 0
\end{equation*}

Which results like this.

enter image description here

How to add space between "some" and "text"? Thank you.

2 Answers

You can try wrapping your text in \text{}.

\begin{equation}
e^{i\pi} + 1 + \text{some text} = 0
\end{equation}

enter image description here

Note: this is more of a latex question, to which you can get answers from here.

In addition, you could consider " \ " and "\quad" directives to add horizontal space between elements in a LaTeX environment, also "\hskip".

Related