cyocum at gmail.com
Mon Aug 6 11:28:33 CEST 2012
On Sun, Aug 05, 2012 at 06:28:28PM -0400, William F Hammond wrote:
> 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"
> >Simple Text</h1
> >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
> >Double quotes are typed like this:
> pandoc: <stdout>: commitAndReleaseBuffer: invalid argument
> (Invalid or incomplete multibyte or wide character)
> -- Bill
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.
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 230 bytes
Desc: Digital signature
More information about the texhax