What you get
Paste a pipe table — from a README, a GitHub issue, a note — and the LaTeX comes
back beside it: a column spec that follows your alignment colons, the header row
in bold, and every cell escaped. Copy it, or download table.tex.
\begin{tabular}{lrr}
\toprule
\textbf{Material} & \textbf{Thickness} & \textbf{Price} \\
\midrule
Plywood & 12 & 1250 \\
Pine \& spruce & 18 & 2400 \\
\bottomrule
\end{tabular}
Why not paste it into a document as it is
A Markdown table is full of characters that LaTeX treats as syntax. An & ends
a cell, a % comments out the rest of the line, and _ or # stops the
compile with an error nobody can read. The unlucky case is not the error: it is
the document that builds fine and prints half a row. Here each of them is
escaped before it reaches the file.
Steps
- Paste the pipe table, header and separator row included.
- Pick booktabs for a paper, tabular if you want the lines, longtable if the table runs past a page.
- Add a caption and a label if you need to cite it.
- Copy the result or download the
.tex.
The input does not have to be Markdown: the same engine takes a spreadsheet export too — see CSV to LaTeX — and the LaTeX table generator has every option on one page.
Questions
Are the alignment colons in the separator row used?+
Yes. `:---` becomes a left column, `---:` a right one and `:---:` a centred one, so the column spec in the LaTeX matches what the table looked like in Markdown.
What happens to **bold** and `code` inside cells?+
They are treated as plain text and the characters in them are escaped. Markdown styling is not translated into `\textbf` or `\texttt`: guessing where emphasis ends is how a converter eats half a cell, so it leaves the text alone and you add the commands where you want them.
Can it go the other way, LaTeX to Markdown?+
Not in this tool. Reading a LaTeX table back means parsing arbitrary commands inside cells, and this page does only the direction it can do without guessing.
Is my table uploaded anywhere?+
No. The conversion runs in this tab and nothing is sent.