Hi
I am writing a text which I have an earlier version written in Latex. My original text include a lot of Latex tables. Is there a way I just can include these tables in Latex syntax instead of writing them again? Or do I have to write them in MMD syntax?
I am using pandoc to convert my Scrivener document from Mmd to docx.
Well if this was a LaTeX oriented project, then both markup systems have mechanisms for inserting raw LaTeX code into the final product—but they themselves aren’t interpreting the code you designate. They assume you know what you are doing and pass the output straight through, and for all other formats the LaTeX code is hidden.
Now Pandoc does have a basic LaTeX -> Markdown version, but it’s pretty basic, I don’t think it will do anything for tables.
I.e. if you have a table in LaTeX and are looking to make a .docx file, you’re going to have to get that table into some format other than LaTeX no matter what—and it might be reformatting them yourself may be simplest. Hopefully someone who knows more than I do about this has some advice. I know next to nothing about targetting Word.
Considering the similarities in structure between the two, you might be able to get away with a series of search and replace commands. Ampersand becomes pipe, etc.
Pergo, did you test if Pandoc could convert your LaTeX tables, I’d be curious to know — AFAIK Pandoc can convert fairly simple tables and there are regular improvements to Pandoc’s LaTeX reader including reading tables so this could have got better…