I'm trying to build up a new documentation system using markdownMarkdown and latexLaTeX. After several hours most things are running smooth, but tables are a bit complicated.
Most of the text can be written with markdownMarkdown syntax (included, included by)
\usepackage[fencedCode,inlineFootnotes,citations,definitionLists,hashEnumerators,smartEllipses,hybrid]{markdown} But tables with defined cell-widths and multicolumns have to be done in latexLaTeX native code.
To make the document more easy to write down, I am planning to create a latexLaTeX macro creating these tables. So the writer only has to fill some macro variables and latexLaTeX is buliding the table.
Even this is almost working BUT
I have to stop the markdownMarkdown environment with \end{markdown} just before creating the table and entable markdownMarkdown with \begin{markdown}. This istisn't working well within the document like:
\end{markdown} \marcocreatetable {parameter 1} {parameter 2} \begin{markdown} But, when trying to put these commands to the macro like
\newcommand{\marcocreatetable}[2]{ \end{markdown} \begin{longtable}{>{\columncolor[gray]{0.8}}p{2.5cm}|p{2.5cm} p{2.5cm} p{3.5cm} p{2.5cm}} \arrayrulecolor{red}\hline Cell1&\multicolumn{2}{l}{S\{1\} #1}&\multicolumn{2}{r}{#2}\\\hline Cell x&cell y &\multicolumn{1}{c}{\textbf{cell w}}&cell z&\multicolumn{1}{c}{\textbf{6}}\\ \end{longtable} \begin{markdown} } an using the macro like
%\end{markdown} \marcocreatetable {parameter 1} {parameter 2} %\begin{markdown} LatexLaTeX complains about
\begin{document} ended by \end{markdown}.
\begin{document} ended by \end{markdown}.
Seems ending markdown within the makro is not working very well. And yes, ending markdown at the beginning of a macro and starting markdown at the ending of a macro maybe bad code, but I'd like to create a table with just a single command.
Any suggestions to a big latexLaTeX noop?