[texhax] latex2rtf?

William F Hammond hmwlfsr at yahoo.com
Mon Aug 6 00:28:28 CEST 2012


Thomas Schneider writes:

>> Can anyone suggest a working command line for using pandoc
>> to convert one of the standard example LaTeX files,
>> "small2e.tex" or "sample2e.tex" to html?
>
> A quick google:
> pandoc command line
>
> gave with the very first link:
>
> http://johnmacfarlane.net/pandoc/README.html
>
> which seems to be what you want.  Very nice!  I haven't tried it.

Yes, I saw that.

It's not working for me.

E.g., with

  pandoc -t html `kpsewhich small2e.tex`

the output in a utf-8 terminal is:

<div id="simple-text"
><h1
  >Simple Text</h1
  ><p
  >Words are separated by one or more spaces. Paragraphs are
  >separated by one or more blank lines. The output is not
  >affected by adding extra spaces or extra blank lines to
  >the input file.</p
  ><p
  >Double quotes are typed like this:

  pandoc: <stdout>: commitAndReleaseBuffer: invalid argument
  (Invalid or incomplete multibyte or wide character)



                              -- Bill




More information about the texhax mailing list