Here is a MWE:
\documentclass{moderncv}
\usepackage{hyperref}
\begin{document}
\cvitem {some text}{\href{url}}{text}
\end{document}
The problem I get is:
Option clash for package hyperref
and also a second error:
Paragraph ended before \\cvitem was complete.
What have I made wrong?
Best Answer
moderncv
loadshyperref
package by itself with the optionunicode
. These are the lines frommoderncv.cls
.Hence, if you load the package again, the error
is generated. Hence remove the line
\usepackage{hyperref}
from your file. On the other hand, if you want to change some settings forhyperref
, use\hypersetup
at appropriate place in your file.Similarly the
\cvitem
is defined as (inmoderncv.cls
)which means,
\cvitem
takes three arguments and the first argument is optional. The first argument is actually the space between the\cvitem
s with default being0.25em
. But you are using three arguments with all three being mandatory (enclosed in braces{}
). Remove one argument.