Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I wrote some software documentation in Latex, but need to get it into a more lightweight format.

I used pandoc to convert latex to markdown, but it did not do a very good job of converting tables.

Here is minimal example of what I want to convert:

\documentclass[12pt,english]{article}
\usepackage{amsmath}
\begin{document}
\begin{table}
  \begin{tabular}{lllp}
    \hline
    \textbf{do}   &  re &$\sqrt{\frac{1}{N}}$ &me  \\
    \textbf{fa}   & so & $\frac{s}{\sqrt{n}}$& la\\
    \hline
  \end{tabular}
\end{table}
\end{document}

and this is the result of `pandoc -o foo.md foo.tex:

lllp

**do** & re &$\sqrt{\frac{1}{N}}$ &me\
**fa** & so & $\frac{s}{\sqrt{n}}$& la\

But this does not render as a table in markdown.

Github's wiki supports all of the following markup languages (solutions for converting tables to markdown or languages in bold would be preferred):

  • AsciiDoc
  • Creole
  • Markdown
  • Org-mode
  • Pod
  • Rdoc
  • Textile
  • reStructuredText

Is there a way to convert my latex tables to any of these (automagically, without having to re-typset the math)? I really do not want to use the embedded images as provided by latex2html.

share|improve this question
1  
As far as I can see none of the languages that you list support math, and a quick google search suggests that you can not access javascript so mathjax is not an option, so it may be that images are your only option for mathmatics –  David Carlisle Feb 9 '13 at 21:51
    
Perhaps file a bug at pandoc mailing list? –  Aditya Sep 8 '13 at 19:43

1 Answer 1

up vote 3 down vote accepted

As far as I can see, none of the languages that you list support math, and a quick google search suggests that you can not access JavaScript so MathJax is not an option, so it may be that images are your only option for mathematics.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.