I have the following set-up in mind, and I hope someone could help me achieve this:
I cite entries from my .bib file. I use the hyperref package (manual) with the pagebackref option set to true, so when I run pdfLaTeX all my references point to the corresponding bibliography option and I can jump back to my reference.
During report writing this behaviour is not useful for me. I would rather have it such that a reference click would open the PDF file of the clicked article.
So when I have a BibTex entry with label {mylittlepony}, I cite this with
Everybody loves chocolate \cite{mylittlepony}.
In the PDF file it says:
Everybody loves chocolate [1].
Now if I click the [1] a file called mylittlepony.pdf should open from a pre-defined folder.
This behaviour should only occur during report writing. When I want to generate the document for other people the original hyperref behaviour should occur, so an additional option should be set for the hyperref package. This is a hard restriction.
I want this to work with TexWorks' (Windows) integrated PDF-viewer as I like the syncTex functionality. This is not a hard restriction. If there are other ways of keeping a simple editor, syncTex and the custom behaviour described above I would go for that.
I tried using the \href function to reference to local files, but this does not work in the integrated PDF-viewer, only in Acrobat Reader X.
\cite{something}always link tosomething.pdf? – Caramdir Mar 31 '12 at 2:46\cite{something}should only point tosomething.pdfif I am compiling the document during report writing as a draft version. If I compile the document for presentation it should just have the normal\citebehaviour – Bart Arondson Mar 31 '12 at 5:43hyperrefto establish the local file link I can only use that link in Acrobat Reader X. Thank you though for thinking with me. – Bart Arondson Mar 31 '12 at 5:49