Math.stackexchange already supports quite a bit of $\LaTeX$ mark-up using mathjax. What do you think about supporting the $\LaTeX$ tables?

In Stack overflow mark-up language, a user could write something like the following:

$ % dollar sign begins LaTeX-style mark-up
  \caption{Table Title}
    % `ccl` option represents the following:
    % left   column centered
    % middle column centered 
    % right  column left-justified
    \toprule % print a horizontal line
    Column Header 1 & Col_H 2 & Col_H 3\\
    r1 c1 & r1 c2 & r1 c3 \\ % row 1
    r2 c1 & r2 c2 & r2 c3 \\ % row 2
$ % dollar sign ends LaTeX-style mark-up

The output would look like this:

Rendering of Latex Table

  • 2
    $\begingroup$ I'm curious what specific difficulty exists in making do with the array environment in $\LaTeX$ for this sort of thing? $\endgroup$ – hardmath Jan 19 '19 at 6:06
  • 1
    $\begingroup$ I don't think that LaTeX tables outside of the math environment are supported by MathJax. I also think it would make a lot more sense for StackExchange to support MarkDown Tables before implementing their own LaTeX tables. There's already plenty of software out there for MarkDown tables and it could be readily applied across the StackExchange network. $\endgroup$ – Mark McClure Jan 19 '19 at 22:45
  • $\begingroup$ Is there a good reason for putting this entire question in boldface? $\endgroup$ – Gerry Myerson Jan 20 '19 at 4:18
  • $\begingroup$ What Mark McClure requested would be nice. Don't know if there is technical reason why we don't have that. Anyway, with MathJax you can do this with an array. See here for pointers/examples. $\endgroup$ – Jyrki Lahtonen Jan 20 '19 at 7:06
  • 1
    $\begingroup$ Some posts on Meta Stack Exchange related to Marc McClure's and Jyrki Lahtonen's comments (about Markdown and tables): Is there Markdown to create tables?, Can we add Markdown support for tables? and Please add support for tables in answers and questions. $\endgroup$ – Martin Sleziak Jan 20 '19 at 13:04

You must log in to answer this question.

Browse other questions tagged .