HappenApps / Quiver

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

LaTex table not formatting #191

Open lordlycastle opened 9 years ago

lordlycastle commented 9 years ago

LaTex tables aren't formatting properly. The syntax I'm using is below, the table is rendering properly in TexPad, so I double I have any syntax error. Perhaps Quiver uses a different syntax. I also tried in Quiver 3.0b4

\begin{tabular}{|l|c|r|}
\hline
first  &  row  &  data \\
second &  row  &  data \\
\hline
third & row & data \\
\hline
\end{tabular}

Rendered in Quiver

ylian commented 9 years ago

Quiver uses MathJax to render LaTeX, but it only supports math-mode macros, not text-mode macros. http://docs.mathjax.org/en/latest/tex.html

A good alternative is to write in Markdown. You can still use inline LaTeX or display equations in Markdown cells.

You can create tables in Markdown using GFM tables (https://help.github.com/articles/github-flavored-markdown/).

lordlycastle commented 9 years ago

That was my first idea, but the tables get very confusing in markdown with inline LaTeX. Without preview it can be very difficult to understand.

Perhaps you could implement text-mode macros in Quiver 3.0?

ylian commented 9 years ago

@lordlycastle That would require replacing MathJax with something else. I will take a look at TexPad and see what it uses. If you know other good TeX apps on the Mac, let me know too. Thanks.

johnsanterre commented 8 years ago

Perhaps look at Lyx? Not sure how they accomplish rendering...