I would like to learn the correct order of calling htlatex and bibtex. So far I tried the following order:
htlatex main
bibtex main
htlatex main
htlatex main
and (I use pdflatex to generate pdfs from TikZ pictures):
pdflatex
pdflatex
bibtex main
pdflatex
htlatex main
But neither of them works. Could anybody write me what is the correct order?