嗨,我该如何修改以下代码,以便当我单击 github 徽标或 Bob 时它会带我到链接?我尝试了几种方法,但无法让它工作。非常感谢 :)
\begin{center}
\textbf{\Huge Bob} \\ \vspace{5pt}
\small \faPhone* \texttt{+64 124} \hspace{1pt} $|$
\hspace{1pt} \faEnvelope \hspace{2pt} \texttt{[email protected]} \hspace{1pt} $|$
\hspace{1pt} \faGithub\hspace{2pt} \texttt{bob} \hspace{1pt} $|$
\hspace{1pt} \faLinkedin \hspace{2pt}\texttt{bob} $|$
\hspace{1pt} \faMapMarker* \hspace{2pt}\texttt{Auckland, NZ}
%\href{http://www.overleaf.com}
\\ \vspace{-3pt}
\end{center}
答案1
您必须使用\href
fromhyperref
包来提供这样的目标链接:
\href{https://github.com}{\faGithub} \hspace{2pt}
\href{https://github.com}{\texttt{bob}}