[OS X TeX] Best workflow for to LaTeX something word compatible

Nathan A. Paxton napaxton at gmail.com
Thu Oct 13 13:33:55 EDT 2016

	Just to close this loop.

	The best solution I found was to use tex4ht/htlatex, because the tables are absolutely the worst/hardest part of this whole thing. Nothing seems to like tables. Tables caused latex2rtf and pandoc to both choke and give up and just dump raw output into the resulting file. Even when I tried to just convert the tables as their own file, both were unhappy. Using tex4ht/htlatex gave icky tables with formatting that I had to clean-up in word (adjust table, row, and columns widths; un- and re-merge cells for \multicolumn commands; etc.) But the tables, by and large, were there and retained the data presented correctly. So I'd recommend the HTML route for folks who've got large complex documents like academic articles with math, tables, figures, and bibliography.

	One thing I would note: since pdftex can handle input formats like png and pdf for included figures, I had to include a cfg file to help out htlatex (I think this is because htlatex generates a dvi). Mine is below. pdftex complains about the \AsPicture renewcommand, but simply indicating that pdftex should ignore and continue seemed not to have adverse effect. The command at the Terminal line was
> htlatex inputfile.tex configfile
(Don't put the .cfg extension for the configfile.)

	Hope this helps others in the future.

         {\Needs{"#3 \csname Gin at base\endcsname.#1
  \ConfigureGraphicsDirect{pdf}{png}{convert -density 300}%

Nathan Paxton

Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read.
	—Mark Twain
(It's kind of cramped, too.)

On 10 Oct 2016, at 11:59 PM, Adam R. Maxwell <amaxwell at me.com> wrote:

>> On Oct 10, 2016, at 19:21 , Nathan A. Paxton <napaxton at gmail.com> wrote:
>> 	Hey Mac-texers,
>> 	I've got an academic article that the journal wants in Word format, and which I, of course, have written in LaTeX. The article has four figures (in PDF), four tables (booktabs), and footnotes and references.
>> 	What's the best current workflow for getting the LaTeX doc to some sort of format that word can read? I've been trying the use of htlatex, but the math is converted to bitmaps and the PDFs make htlatex choke (I think it wants EPS).
> Latex2RTF is the only tool I know of that converts (many) equations to editable equation objects in Word. It should handle PDF graphics, also. Tables are a bit iffy.
> --
> Adam
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20161013/5f8f700c/attachment.sig>

More information about the MacOSX-TeX mailing list