Yehuda
Yehuda

Reputation: 1893

Single spacing in Jupyter math mode

I'm trying to write out a series of math equations inline in Jupyter. I've written the following in my markdown:

Solution:

$x_1 = -8$

$x_2 = 3$

The problem is that this displays much like it does in StackOverflow, with a space in between. Is there a way to display those as a single-spaced entity, rather than double-spaced? I'd rather them be left-aligned, so I don't want to double up the $$.

Upvotes: 2

Views: 1382

Answers (1)

charlesreid1
charlesreid1

Reputation: 4841

You can use a <br /> tag to insert a line break between the two equations (less space between lines):

    Solution:

    $x_1 = -8$ <br />
    $x_2 = 3$

Upvotes: 2

Related Questions