HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

left align latex cells content #532

Open tomibennett opened 8 years ago

tomibennett commented 8 years ago

I couldn't find a way to left-align the content of my Latex cells, they're always at the center in the following modes: preview; HTML exported and presentation.

I think that couldn't be fixed with a Latex macro neither with a CSS property set in the style tab from Quiver's preferences, because MathJax puts it's own css property in an inherited div (.MathJax_Display) containing a text-align: center. source Thus, would it be possible to allow us to have a control of the MathJax configuration, or any other way to choose the alignment, please? (Considering, of course, this is the problem's source).

synchronizing commented 8 years ago

I've noticed this was posted a while ago but for the sake of anyone else Googling Quiver left mathjax, here is a solution to place all your Mathjax on either the left or right hand side.

  1. Find your Quiver.app and right-click and click 'Show Package Contents'.
  2. Navigate to Contents > html-build > vendor > MathJax-2.4.0
  3. Edit MathJax.js and find the only instance of displayAlign: in the entire code. Edit it so it says displayAlign: "left" or displayAlign: "right".

You are done. Open the application and check out results.

screen shot 2016-08-29 at 8 39 17 pm

While you are at it, you may update MathJax by heading over to their website and downloading their latest version. https://www.mathjax.org/