I have a macro which inserts a Markdown Table. The macro was originally developed by the person behind www.rocketink.net. What it does is: When hit the trigger, the macro asks for a user input--the number of columns and rows required for the table. It perfectly works for Markdown Table. I was trying to port it to Latex table. But, I am not able to make it perfect. Can you guys help me?
Create Latex Table.kmmacros (8.5 KB)
In its current state, it is able to generate a table like:
`\begin{tabular}{l|l|l}
& Title & Title & Title & Title
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
& Cell & Cell & Cell & Cell
\end{tabular}`
What I want it to be is like this:
`\begin{tabular}{l|l|l}
& Title & Title & Title & Title \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
& Cell & Cell & Cell & Cell \\
\end{tabular}`