我的简历是希腊文,但我希望 LinkedIn 和电子邮件以拉丁文显示。
\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[LGR, T1]{fontenc}
\usepackage[greek]{babel}
\firstname{Όνομα}
\familyname{Επίθετο}
\title{Επάγγελμα}
\address{Οδός 1}{Πόλη}
\mobile{1234567891}
\social[linkedin]{john-doe}
\email{[email protected]}
\begin{document}
\maketitle
\end{document}
注意:对于拉丁文本,我使用\textlatin{}
命令(它似乎在\email{}
和\social{}
命令中不起作用)。
答案1
您可以尝试这些重新定义:
\documentclass[11pt,a4paper,roman]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[LGR, T1]{fontenc}
\usepackage[greek]{babel}
\makeatletter
\renewcommand*{\emaillink}[2][]{%
\ifthenelse{\equal{#1}{}}%
{\href{mailto:#2}{\textlatin{#2}}}%
{\href{mailto:#2}{\textlatin{#1}}}}
\renewcommand*{\httpslink}[2][]{%
\ifthenelse{\equal{#1}{}}%
{\href{https://#2}{\textlatin{#2}}}%
{\href{https://#2}{\textlatin{#1}}}}
\makeatother
\firstname{Όνομα}
\familyname{Επίθετο}
\title{Επάγγελμα}
\address{Οδός 1}{Πόλη}
\mobile{1234567891}
\social[linkedin]{john-doe}
\email{[email protected]}
\begin{document}
\maketitle
\end{document}