[Tfug] MS Word scripters?

Angus Scott-Fleming angussf at geoapps.com
Mon May 8 23:11:00 MST 2006


On 8 May 2006 at 19:53, Claude Rubinson  wrote:

> I'm wondering if there are any MS Word wizards/scripters on the list
> or if anybody knows of one.
> 
> I'm going from LaTeX -> HTML -> Word.  To move from LaTeX -> HTML, I'm
> using tex4ht which produces very clean (and attractive) HTML/CSS that
> Word really likes.  So the HTML -> Word transition is pretty
> straightforward.
> 
> The one hitch that I've run into is that, by default, tex4ht wants to
> generate footnotes as separate HTML files.  So, if the original file
> is named "foo.tex" and has two footnotes, tex4ht generates "foo.html"
> (which has all of the main text), "foo2.html" (footnote 1), and
> "foo3.html" (footnote2).  In the html document, tex4ht renders the
> footnote as a standard hyperlink and Word maintains that reference on
> import.
> 
> What I need to do is bring those external pages into the Word document
> as footnotes (or endnotes).  Doing it by hand is (naturally) a pain
> and a Google search didn't turn up anything of use.  (Which,
> admittedly, seems odd.)  

A quick google for "tex4ht footnotes" turned up these suggestive hits:

------- Included Stuff Follows -------
Google Groups: comp.text.tex
From:		Eitan Gurari - view profile
Date:		Sat, Apr 3 2004 1:03 pm
Email: 		gur... at cis.ohio-state.edu (Eitan Gurari)
Groups: 		comp.text.tex

    > > Have you tried tex4ht? Besides HTML aimed for import bey Word it also
    > > supports OpenOffice.org's format.

    > I wonder if I can have tex4ht produce a single HTML file that contains all
    > the footnotes in my text at the end of the file, hyperlinked to the place
    > where they appear in the continuous text. Default is to produce a seperate
    > HTML file for each footnote which is quite a nuisance when converting a
    > document that contains some 300 footnotes in all. 

    The command line option `fn-in' should offer the described behavior for 
    HTML output.  The default tex4ht configurations for OpenOffice assume that 
    behavior (I have a queue of about 3 months of comments regarding tex4ht, 
    many concerning OpenOffice and writer2latex; I hope to clear them within a 
    couple of weeks). -eitan  
--------- Included Stuff Ends ---------
http://groups.google.com/group/comp.text.tex/tree/browse_frm/month/2004-4?_done=%2Fgroup%2Fcomp.text.tex%2Fbrowse_frm%2Fmonth%2F2004-4%3Fstart%3D250%26&start=250

Search for "fn-in" in this PDF: 
    http://www.tug.org/TUGboat/Articles/tb25-1/gurari.pdf

Have you tried that command-line option?

HTH

Angus


--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
+-----------------------------------+







More information about the tfug mailing list