Apologies for a newbie question. I have a MacTeX installation
(TeXLive 2007). Running htlatex test.tex on a simple test file fails
Output written on test.pdf (26 pages, 76552 bytes).
Transcript written on test.log.
tex4ht.c (2006-09-13-14:27 kpathsea)
--- warning --- Problem with command line
--- error --- Can't find/open file `test.dvi'
t4ht.c (2007-01-05-03:17 kpathsea)
--- warning --- Can't find/open file `test.lg'
I know that tex4ht extracts magic from the dvi file, but one isn't
created by the call to htlatex, apparently.
Any help much appreciated.
If you use the hyperref package, be sure to add the tex4ht option:
If you still have problems. Post the file that you are trying to
compile in addition to the messages that you posted above.
It appears that htlatex called one of the latex programs so that it
produced pdf instead of dvi. From what I've read, pdftex is able to
produce pdf and dvi, so perhaps htlatex is calling this program in the
wrong way? My MacTeX installation is brand new, so I doubt I've
tinkered with anything that would have broken how htlatex works.
htlatex generic "xhtml,oofice" -cmozhtf -coo
I then copy the css and html to the web SERVER and view from the
server so that the css is used (maybe there are also ways to view it
as a file, but it didn't work for me).
Perhaps your document is at fault:
It is possible to change the output from dvi to pdf in a document by
changing the value of \pdfoutput. A faulty \ifpdf-test e.g. can do it
Try htlatex with a small document:
If this work, check your document.
where "generic" is the name of the document. These are the options
that I have been using, I don't even remember what they mean, but my
documents compile properly into a .css (cascading style sheet) file
and an .html file.
Yes, this was the problem. The small hello world document with a
standard article class generated html and css, as advertised.
Now, I need to figure out where in my class style file, based on
memoir, the pdf output is being triggered. Unfortunately, I know too
little TeX to make much headway.
I do check in a couple of places for pdf output, like this:
Any pointers you might give me will be much appreciated. I'd like to
end up with a class style file that produces the fine pdf output I've
come to expect (including microtype justification) and html.
All the best,
> I do check in a couple of places for pdf output, like this:
Use the ifpdf-package instead of this tests.
Many thanks for your expert help in this matter. I'm looking at an
html version of my test.tex document and feeling pleased.
All the best,
Thank you for the advice on the hyperref package. I've put it in my
style file and all is well.
All the best,