tag:support.fletcherpenney.net,2013-02-12:/discussions/questions/1392-tables-for-latex-outputMultiMarkdown: Discussion 2017-12-02T13:55:56Ztag:support.fletcherpenney.net,2013-02-12:Comment/386005252015-12-02T10:06:21Z2015-12-02T10:06:22ZTables for LaTex output<div><p>Hi,</p>
<p>I tried to put a table in my MMD document like this:</p>
<table>
<tr>
<th></th>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<p>And it compiled to Latex document like this:</p>
<p>\begin{table}[htbp] \begin{minipage}{\linewidth}
\setlength{\tymax}{0.5\linewidth} \centering \small
\begin{tabulary}{\textwidth}{@{}LL@{}} \toprule &\ \midrule
&\</p>
<p>\bottomrule</p>
<p>\end{tabulary} \end{minipage} \end{table}</p>
<p>And Latex compiler send those error messages while
compiling:</p>
<p>./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}]</p>
<p>It seems like lots of functions and variable are undefined. Is
there any userpackage needed for MMD compiled Latex tables?</p></div>Allen Wutag:support.fletcherpenney.net,2013-02-12:Comment/386005252015-12-02T18:13:38Z2015-12-02T18:13:38ZTables for LaTex output<div><p>Sounds like you're not creating a complete LaTeX document, just
a<br>
"snippet" meant to be inserted in a complete document. You need the
proper metadata, as well as LaTeX support files -- if you're
not<br>
creating your own:</p>
<p><a href="https://github.com/fletcher/peg-multimarkdown-latex-support">https://github.com/fletcher/peg-multimarkdown-latex-support</a></p>
<p>Take a look at the MMD Sample documents to see what a complete
document<br>
should look like if you're creating LaTeX:</p>
<p><a href="https://github.com/fletcher/MultiMarkdown-Gallery">https://github.com/fletcher/MultiMarkdown-Gallery</a></p>
<p>Fletcher</p></div>fletcher