LaTeX tablular environment won't compile

  • Context: LaTeX 
  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 5K views
Saladsamurai
Messages
3,009
Reaction score
7
Can seem to make it work? Am I missing something?

[tex] \begin{tablular}{c c c} <br /> P & Q & R \\<br /> S & T & V <br /> \end{tablular}[/tex]
 
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?

[tex] \begin{tablular}{c c c} <br /> P & Q & R \\<br /> S & T & V <br /> \end{tablular}[/tex]

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

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