# htlatex/tex4ht without hyperlinks in HTML file?

How do I disable the creation of hyperlink with tex4ht? They are unnecessary when preparing a paper for publication in one of those ... (insert any attribute you find appropriate) journals that require Word.

I have removed the hyperref package, no luck. It doesn't appear in the logs, I have checked that. My command line is:

htlatex paper.tex "word" 'symbol/!' "-cvalidate"


The tables, figures and bibliography entries are accessible via hyperlinks. How do I get rid of the anchors and of the links?

EDIT: The document in question uses the natbib package. Adding

\Configure{cite}{}{}{}{}
\Configure{bibitem}{}{}


to a custom .cfg file didn't change anything.

• perhaps you removed hyperlink & cite commands but not all the auxiliary files? I'd try again, no hyperref, no autoref & a clean directory ... – prettygully Mar 22 '12 at 23:26
• @prettygully: Nope, no luck here. – krlmlr Mar 23 '12 at 0:46

Generate html that is compatible with word

1. htlatex 'html,word' 'symbol/!' (note single quotes are needed in Unix shells to prevent ! being expanded)

2. Open in Microsoft Word. Change to Print Layout

3. Select all text (or specific regions as you need)

4. Cmd-shift F9 (Mac) or Ctrl-shift F9 (PC) removes the field codes and replaces them with the text equivalent

5. Use advanced search for formatting "superscript + underline" and replace with "superscript + no underline"

6. (Optional) Use advanced search and replace to change colour of superscripts and to increase point size

7. Save as Word document

I also find that some manual font size corrections are needed for inline (simple) math symbols

Write the following in your .cfg file below \Preamble above \begin{document}:

\renewcommand{\Link}[3][]{}

There is an option called hidden-ref. This generates an openoffice file (test.odt which you can then export to word) where all the bib entry links are gone:
htlatex test.tex "xhtml,ooffice,hidden-ref" "ooffice/! -cmozhtf" "-coo -cvalidate"
• Doesn't work for me (Ubuntu, current TeXlive). With these options, there is supposed to exist a file hidden-ref.cfg, but locate tells me there is none. I'm just fetching the most recent updates of TeXlive to see if things change. -- How did you work out this solution? Do you have a reference? – krlmlr Mar 23 '12 at 8:12
• After some digging I found that hidden-ref is supported in ooffice only and only hides the links, not removes them. I need word for my use case. Thanks anyway. – krlmlr Mar 23 '12 at 9:44