LaTeX Why Doesn't My LaTeX Table Compile Properly?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion centers on the challenges of using the tabular environment in MathJax, which is not currently supported. Users are encouraged to utilize alternative environments, such as the array, for creating tables. The conversation highlights the limitations of MathJax compared to LaTeX, particularly the inability to use certain formatting commands like \hline in tabular structures. Participants share examples of how to effectively format tables using the array environment, demonstrating a workaround for the lack of support for traditional LaTeX table commands. Overall, the focus is on finding solutions for table creation within the constraints of MathJax.
Saladsamurai
Messages
3,009
Reaction score
7
Can seem to make it work? Am I missing something?

<br /> \begin{tablular}{c c c} <br /> P &amp; Q &amp; R \\<br /> S &amp; T &amp; V <br /> \end{tablular}<br />
 
Physics news on Phys.org
The tabular environment is currently not supported by mathjax. So you'll have to use another environment for this.

See http://www.mathjax.org/docs/1.1/tex.html#supported-latex-commands for all currently supported commands and environment.

See https://www.physicsforums.com/showthread.php?t=546968 for alternatives to the tabular environment.
 
Last edited by a moderator:
Saladsamurai said:
Can seem to make it work? Am I missing something?

<br /> \begin{tablular}{c c c} <br /> P &amp; Q &amp; R \\<br /> S &amp; T &amp; V <br /> \end{tablular}<br />

fyi, we don't use LaTeX anymore. We use MathJax which supports LaTeX markup. Sometimes you can create a table structure using array.
 
Thanks folks! I just used an array. I miss being able to add an \hline though :frown:
 
\hline works in array. For example:

Code:
[tex]\begin{array}{c|cc}
\hline
A & B & C\\
\hline
D & E & F\\
\hline
\end{array}
[/tex]

gives

\begin{array}{c|cc}<br /> \hline<br /> A &amp; B &amp; C\\<br /> \hline<br /> D &amp; E &amp; F\\<br /> \hline<br /> \end{array}<br />
 
Back
Top