I tried it on Ubuntu and got similar results, generating .docx (viewed on LibreOffice) and html. Pandoc seems to ignore the TOC and bibliography though. On HTML it also ignored the title, author and abstract fields. On LibreOffice the math was rendered more or less OK, but some symbols were missing. The real problem though, was with labels and references. Labels were translated directly as text (e.g., [sub:section-title]) and references as well, treating normal and formatted references differently and badly in both cases.
The tool seems promising, but without proper support for labels, references and bibliography, it still cannot be used for "heavy duty". On Wed, Aug 8, 2012 at 2:13 AM, Jerry <lancebo...@qwest.net> wrote: > I just tried a quick experiment with pandoc, saving a 3.5 page LyX document > (article class) of mostly lorem ipsum as LaTeX and then using pandoc to > convert that to .docx, Word's XML format. I then viewed the .docx in > Microsoft Word 2011 for OS X (Macintosh). > > More specifically, my LyX document contained a title, author, date, address > (city, state, country), abstract, three sections wherein the second second > section had two subsections. Also, there were three display equations two of > which were numbered and one inline equation. > > using the command pandoc -o /output/file /input/file with no options (pandoc > has lots of options) then viewing the result in Word, my first impression > was, Hey, it worked! > > The output was displayed in what must be the default theme, Office. Title and > author were displayed as was the abstract. Date and address were lost. > (Address and date were entered as such in LyX--if they had been e.g. Standard > they probably would have passed through.) Sections and subsections appeared > to be recognized (I'm not a Word expert); they were not numbered but appeared > in different fonts and/or colors depending on their level. Equations were > correctly converted **and were editable in Word 2011's built-in equation > editor**. (As far as I know this is _not_ Equation Edit or its big brother > MathType, but a new Microsoft equation editor in this version of Word--at > least it is integrated in the program and does not launch an external > editor.) However, equation numbers were lost. > > The loss of section and subsection numbers might be fixed with a Word setting > or theme choice. The loss of equation numbers might be fixed by choosing a > pandoc option--I have not investigated this further yet. Pandoc claims to > convert only a subset of LaTeX. > > Paragraphs were not indented but were separated by a suitable space. Again, > this might be a theme choice but is no doubt fixable by other means such as a > ruler setting. (I realize that even in LaTeX this is a "theme" setting too.) > > When I saved the .docx to .doc, things looked pretty much the same except > that equations were rendered as bitmaps and the display equations were > left-justified (where they had been centered in .docx.) > > For this simple test I was pretty happy with the results, especially .docx. > But again, it was a pretty simple LyX file and I haven't tried a LyX file > with a more sophisticated structure, graphics, TOC, or bibliography. I would > encourage others to try pandoc and report their results. > > pandoc is here: http://johnmacfarlane.net/pandoc/ > > I had an installation issue with the OS X installer that is probably unique > to my computer and the author, John MacFarlane, helped me promptly once I > posted a ticket. > > Jerry -- Ernesto Posse Modelling and Analysis in Software Engineering School of Computing Queen's University - Kingston, Ontario, Canada