Tables for LaTex output

Allen Wu's Avatar

Allen Wu

02 Dec, 2015 10:06 AM

Hi,

I tried to put a table in my MMD document like this:

| | |
| ----- | ----- |
| | |

And it compiled to Latex document like this:

\begin{table}[htbp]
\begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth}
\centering
\small
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule
&\\
\midrule
&\\

\bottomrule

\end{tabulary}
\end{minipage}
\end{table}

And Latex compiler send those error messages while compiling:

./Rick.tex:13: Undefined control sequence. [\setlength{\tymax}{0.5\linewidth}]
./Rick.tex:13: Missing number, treated as zero. [\setlength{\tymax}{0.5\linewidth}]
./Rick.tex:13: Illegal unit of measure (pt inserted). [\setlength{\tymax}{0.5\linewidth}]
./Rick.tex:16: LaTeX Error: Environment tabulary undefined. [\begin{tabulary}]
./Rick.tex:16: Missing number, treated as zero. [\begin{tabulary}{\textwidth}]
./Rick.tex:16: Illegal unit of measure (pt inserted). [\begin{tabulary}{\textwidth}]
./Rick.tex:16: Undefined control sequence. [...n{tabulary}{\textwidth}{@{}LL@{}} \toprule]
./Rick.tex:17: Misplaced alignment tab character &. [&]
./Rick.tex:18: Undefined control sequence. [\midrule]
./Rick.tex:19: Misplaced alignment tab character &. [&]
./Rick.tex:19: LaTeX Error: There's no line here to end. [&\\]
./Rick.tex:21: Undefined control sequence. [\bottomrule]
./Rick.tex:23: LaTeX Error: \begin{minipage} on input line 12 ended by \end{tabulary}. [\end{tabulary}]

It seems like lots of functions and variable are undefined. Is there any userpackage needed for MMD compiled Latex tables?

  1. Support Staff 1 Posted by fletcher on 02 Dec, 2015 06:13 PM

    fletcher's Avatar

    Sounds like you're not creating a complete LaTeX document, just a
    "snippet" meant to be inserted in a complete document. You need the
    proper metadata, as well as LaTeX support files -- if you're not
    creating your own:

    <https://github.com/fletcher/peg-multimarkdown-latex-support>

    Take a look at the MMD Sample documents to see what a complete document
    should look like if you're creating LaTeX:

    <https://github.com/fletcher/MultiMarkdown-Gallery>

    Fletcher

  2. fletcher closed this discussion on 02 Dec, 2017 01:55 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Apr, 2018 11:04 PM
13 Apr, 2018 10:58 PM
09 Apr, 2018 09:47 PM
09 Apr, 2018 04:28 PM
19 Feb, 2018 10:29 PM

Recent Articles