moderncv 禁用电子邮件网址

moderncv 禁用电子邮件网址

如何才能防止 latex moderncv 主题中的电子邮件 (url) 可点击?是否有禁用封闭 url 的功能?我认为这对我简历中其他我想要不可点击的链接也会有帮助。

% personal datas
\firstname{}
\familyname{}
\address{}{}
\mobile{}              
\email{[email protected]} 

答案1

调整\emaillink添加链接仅有的如果表达了可选参数。

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}

\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}

% change \emaillink so it doesn't make a link by default
\renewcommand*{\emaillink}[2][]{%
  \ifthenelse{\equal{#1}{}}%
    {#2}%
    {\href{mailto:#2}{#1}}}

% personal data
\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\extrainfo{additional information}
%\photo[64pt][0.4pt]{picture}
\quote{Some quote}

\begin{document}

\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}

\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}

\end{document}

相关内容