[texhax] latex2rtf?

Susan Dittmar Susan.Dittmar at gmx.de
Mon Aug 6 12:15:05 CEST 2012


Quoting Chris Yocum (cyocum at gmail.com):
> I ran pandoc on haskell cabal compiled version and what you need to do is put in this:
> 
> pandoc --standalone --to=html --from=latex /usr/local/texlive/2012/texmf-dist/tex/latex/base/sample2e.tex
> 
> Note the --standalone option.  This will wrap it in a full html file.
> 
> I hope this helps.

I guess that's not the whole story.

> On Sun, Aug 05, 2012 at 06:28:28PM -0400, William F Hammond wrote:
> >   pandoc: <stdout>: commitAndReleaseBuffer: invalid argument
> >   (Invalid or incomplete multibyte or wide character)

This sounds to me as if there's a problem with text encoding. Looks like
pandoc expects utf8, but the input probably is in some other encoding.

>From pandoc documentation (http://johnmacfarlane.net/pandoc/README.html):

> Pandoc uses the UTF-8 character encoding for both input and output. If
> your local character encoding is not UTF-8, you should pipe input and
> output through iconv:
> iconv -t utf-8 input.txt | pandoc | iconv -f utf-8

Hope this helps,

	Susan



More information about the texhax mailing list