Thursday, January 08, 2009

how to generate hyperlink citation in pdf file.

First, put the package "hyperref" at the end of the all the other packages, i.e., use the command below,

\includepackage{hyperref}

Next, there are two ways to generate the hyperlink,

(1) use the standard latex to compile the file, but the next step will be sort of different when using the command dvips, and the command below should be used:  

dvips -Ppdf file.dvi

Afterwards, one uses the command "ps2pdf file.ps" to produce the pdf file.

This command will produce the pdf file right away from the dvi without generating the postscript file. 

(2) use the pdflatex to compile the tex file, please note that the eps has to be converted into pdf format, and also change the corresponding text in the source file. Then compile the source file at least twice.

Below are some useful commands:
http://www.mpch-mainz.mpg.de/~joeckel/pdflatex/

For use with LaTeX->dvips->ps2pdf you can process it with the sequence:
# ----------------------------------
latex example.tex
bibtex example
latex example.tex
latex example.tex
latex example.tex
dvips -Ppdf example.dvi
pdftime example.ps
ps2pdf example.ps
# ----------------------------------
thumbpdf --modes=dvips example.pdf
latex example.tex
dvips -Ppdf example.dvi
pdftime example.ps
ps2pdf example.ps
# ----------------------------------
With pdfLaTex, do# ----------------------------------
pdflatex example.tex
bibtex example
pdflatex example.tex
pdflatex example.tex
pdflatex example.tex
thumbpdf example.pdf
pdflatex example.tex
# ----------------------------------

No comments: