Arch Desai
Arch Desai

Reputation: 331

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

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.

Upvotes: 3

Views: 9387

Answers (2)

IF.Francisco.ME
IF.Francisco.ME

Reputation: 146

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

Upvotes: 1

pylang
pylang

Reputation: 44545

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.

Upvotes: 8

Related Questions