Adopted from: Dr. Bruce Ravel's CV template [[https://github.com/bruceravel/My-CV]]
-
Files:
cv.tex: the LaTeX source for my CVhighlights.bib: bib file with my favorite citationsallmine.bib: bib file with all the rest of my citationsBR_smiling.jpg: my photomoderncv.purple.patch: a patch to the Modern CV LaTeX class to add a color of my choicemydoi.sty: a patched copy of the standarddoi.sty
-
Required downloads:
- The Modern CV class: [[https://launchpad.net/moderncv]]
- Unpack the zip file into the current directory (or, I suppose,
install it system-wide). Really only need the
.styand.clsfiles in the current directory. - +Apply the patch:
patch < moderncv.purple.patchto add the purple color theme+ My purple theme has been included since version 0.13, so the patch is no longer necessary. - Update moderncv to 1.4!
- Unpack the zip file into the current directory (or, I suppose,
install it system-wide). Really only need the
- etoolbox: [[http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox]]
- Again, only need the
etoolbox.styfile in the current directory.
- Again, only need the
- I had to install Ubuntu's +texlive-latex-extra+ to get one of
Modern CV's dependencies (
xargs.sty). This has since moved into thetexlive-latex3package.
- The Modern CV class: [[https://launchpad.net/moderncv]]
-
The doi/hyperref problem
This happens:
: Package hyperref Message: Driver (autodetected): hpdftex.
:
: (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
: (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)))
:
: ! LaTeX Error: Option clash for package hyperref.
:
: See the LaTeX manual or LaTeX Companion for explanation.
: Type H for immediate help.
: ...
:
: l.49 \begin{document}
The solution is to edit the doi.sty file at line 36 to read
: \RequirePackage[unicode]{hyperref}
i.e. add the =[unicode]=.
On my desktop at work, doi.sty is /usr/share/texlive/texmf-dist/tex/latex/doi/doi.sty
The reason this is necessary is that =moderncv= imports the hyperref package with the =[unicode]= argument. The warning is about hyperref being imported differently in the two packages.
Alternately, simply remove line 36, which works because hyperref is already loaded.
mydoi.cls is a copy of doi.sty version 2007/07/24 with line 36
commented out