Let's say I have a document that uses cross-references and also bibtex/biblatex to manage the bibliography. Currently I need to run pdflatex + bibtex/biber + pdflatex to generate the final document.
It gets kinda boring to do that; is it possible to only need one invocation? Perhaps with the scripting capabilities of LuaTeX?
Unlike this question, I'm not interested in abstraction layers, only in making it happen within *TeX itself.
EDIT: What about the \write18 command? I know that it is possible to it use to at least avoid one call to bibtex.
EDIT2: Two people asked me why I don't want an abstraction layer.
1 - Should you need one? It is the most basic functionality of *TeX. It is bloody archaic to have to manage yourself the details of the compilation process. I want to make *TeX better; in this case it means easier to use.
2 - Abstraction layers add complexity and reduce flexibility. You have to worry about its bugs as well (I've been bitten by unreliable error reporting). And what if you want to compile with LuaTeX instead of pdfTeX? Or use biber instead of BibTeX?
texinfocount as*TeX? Doestexi2pdfcount as a valid solution? – Willie Wong Nov 02 '10 at 16:26