Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a document that compiles using pdflatex, but runs into errors when using htlatex.

This one seems to be related to my \title:

! Incomplete \iffalse; all text was ignored after line 4.
<inserted text> 
                \fi 
<*> ...}}}\makeatother\HCode .a.b.c.\input  v2.tex

while this one shows up in a table:

! Undefined control sequence.
\T:halign ... {halignTB<>}{MkHalign}{<>}\@array:a 

Rather than trying to track down each individual bug - as they are not bugs to pdflatex, apparently - I'd like to know whether there's some overarching change I need to apply to the document before attempting to use htlatex. Is htlatex only compatible with certain document types, for example?

share|improve this question
1  
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. – Matthew Leingang Jan 16 '12 at 20:13
My problem is that MWE tests seem to work fine (with exceptions that googling answers). I have a large project, already pretty near done, that I wanted to turn into an html document. My questions is therefore general - are there known incompatibilities between htlatex and other latex compilers? Are there changes that need to be made to tex documents before htlatex should be approached at all? – keflavich Jan 16 '12 at 20:32
You might look at the tex4ht troubleshooting page. Those are the issues known to the maintainers. If that doesn't help you, pare down your file until you isolate the code that causes the errors. Then you can get some help working around those. – Matthew Leingang Jan 17 '12 at 18:37
@MatthewLeingang please turn your comment into an answer. – lockstep Mar 4 '12 at 17:35
@lockstep: I didn't really give an answer; just some pointers on how to create a MWE and a pointer to a troubleshoot page. I feel like the question has still not been asked in such a way as to make it answerable. – Matthew Leingang Mar 6 '12 at 3:34

closed as too localized by Paulo Cereda, Joseph Wright May 5 '12 at 21:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.