Frequently Asked Questions
Why the conversion results in a PDF file?
If your LaTeX preamble contains lines such as \usepackage[pdftex]{…}
, remove the [pdftex]
option before the conversion.
Another solution is to use the ifpdf package:
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex]{…}
\else
\usepackage{…}
\fi
\ifpdf
\usepackage[pdftex]{…}
\else
\usepackage{…}
\fi
Uninstall
If you wish to uninstall SimpleTeX4ht, drag the application icon to the Trash and delete the application preferences file found at ~/Library/Preferences/SimpleTeX4ht.plist
where ~
is your home folder.
XeLaTeX
TeX4ht is incompatible with some XeLaTeX packages, for example xlxtra
, so you must edit your preamble to not include them. See an example below.
%!TEX encoding = UTF-8 Unicode
%!TEX TS-program = xelatex
\documentclass{article}
\makeatletter
\@ifpackageloaded{tex4ht}{
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
}{
\usepackage{xltxtra}
\setmainfont{Zapfino}
}
\makeatother
\begin{document}
Do you like Zapfino?
\end{document}
%!TEX TS-program = xelatex
\documentclass{article}
\makeatletter
\@ifpackageloaded{tex4ht}{
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
}{
\usepackage{xltxtra}
\setmainfont{Zapfino}
}
\makeatother
\begin{document}
Do you like Zapfino?
\end{document}
LaTeX to Word?
You can to convert LaTeX to Microsoft Word using SimpleTeX4ht and OpenOffice.org.
-
Drag and drop your LaTeX File to the SimpleTeX4ht window, select "Other formats" tab and verify that OpenDocument radio button is checked.
-
Click "Convert" button. SimpleTeX4ht converts your LaTeX file to OpenDocument (.odt).
-
Open the .odt file with OpenOffice.org and choose "Save As…" in File menu. Select Microsoft Word 97/2000/XP (.doc) and click "Save" button.