As part of a project to get LaTeX to output something useful, I found myself wanting to write a new hyperref driver for the desired format. The documentation explains what a driver needs to do, but it doesn't explain how to get hyperref to load the new driver instead of its given one. Looking through the code, I can't see an obvious hook but I may well be missing something. At the moment, I load the driver file using the \AtBeginDocument hook, but it worries me that this might not be very robust.
So, can I get hyperref to load a custom driver without modifying hyperref.sty? If not, are there any dangers from manually loading it myself at the start of the actual document?
dvitotextprogram that no-one's been tell me about. (Yes, I know I could dolatex -> dvi -> pdf -> textbut that seems a little ridiculous, plus I was hoping for a robust solution that didn't rely on a specific engine.) – Andrew Stacey Aug 01 '11 at 12:30hyperrefin to thinking it was being run by latex and not pdflatex? – Andrew Stacey Aug 01 '11 at 12:31\pdfoutput=1only at\begin{document}. But I would at first ask Heiko. Perhaps he is willing to implement an optionspecialdriver=..... – Ulrike Fischer Aug 01 '11 at 12:41dvi2tty,crudetype,catdvi– Lev Bishop Aug 01 '11 at 14:02