moderncv incompatable with doi package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
moderncv |
New
|
Undecided
|
Unassigned |
Bug Description
When I try to use the package 'doi' (which formats the bibliography to add links to the document object identifier), I get the following error message in the log:
! LaTeX Error: Option clash for package hyperref.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.34 \begin{document}
The package hyperref has already been loaded with options:
[]
There has now been an attempt to load it with options
[pdftex]
Adding the global options:
,pdftex
to your \documentclass declaration may fix this.
Try typing <return> to proceed.
Note that adding the global option pdftex to my documentclass declaration does not fix the problem. This is an exceedingly useful package that reads the doi field of a .bib and adds a link to the end of the reference. The doi is a stable url to a journal article that tracks changes to the real url so that if the publisher changes names or decides to change their naming scheme, the link does not break and is used extensively in the sciences.
comment out line 133 on moderncv.cls would help to this issue