TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While using reST (restructuredtext) to produce some mathematical documents I could not find documentation regarding multidimensional matrices.

  1. How do you create matrices in reST?
  2. Is there is a quick, syntactical transformation between LaTeX and reST?
share|improve this question
Could we have a reference for reST? – Joseph Wright May 30 '11 at 13:17
Propably means docutils.sourceforge.net/rst.html The first question seems off topic. – pmav99 May 30 '11 at 13:27
Have you considered pandoc? – ℝaphink May 30 '11 at 13:27
Your 1. is off-topic here. The site is about (La)TeX not reST or other formats. The 2. point might be marginally on-topic, but I personally don't think so. The question might be better asked on another stackexchange site. – Martin Scharrer May 30 '11 at 13:32
@Raphink: You should turn that into an answer. – Charles Stewart May 30 '11 at 15:49
up vote 7 down vote accepted

According to its description, pandoc can convert between:

markdown and (subsets of) reStructuredText, HTML, and LaTeX; and it can write plain text, markdown, reStructuredText, HTML, LaTeX, ConTeXt, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki markup, groff man pages, and S5 HTML slide shows.

It will happily convert from ReST to LaTeX. The contrary though, will be harder, just as it would be with other formats such as markdown, because LaTeX is much more finegrained than ReST. pandoc will convert basic things like \textit, \chapter, \verb and such, but don't expect it to do any advanced things or to be able to support LaTeX packages.

I've used mardown with pandoc in the past to generate LaTeX. pandoc allows you to include some LaTeX inside the markdown documents (and maybe also in ReST documents, I haven't tried). This would allow to do your matrixes while keeping most of the document in ReST.

That said, I ended up switching to full LaTeX when there were just too much LaTeX in my markdown files.

share|improve this answer

Your Answer


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.