nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Equation alignment?

shiffman opened this issue · comments

Would it be better to left-align all the <div data-type="equation"> elements? Or just have an option like <div data-type="equation" class="center"> / <div data-type="equation" class="left">?

screen shot 2016-07-11 at 10 45 50 am

There's a new class for this ( .equation-left ) to be used in a wrapper div as I couldn't figure out how to 'inject' a class from the data-type="equation" div to the generated .katex code.

<!-- example -->
<div class="equation-left">
<div data-type="equation">\vec{w} = (8,6)</div>
</div>