CV,babel 问题

CV,babel 问题

我想制作一份包含希腊语和英语的简历。问题是英语以希腊字体显示。这是一个简短的例子。

\documentclass[a4paper, 12pt, a4paper]{moderncv}  

\usepackage[english, greek]{babel}

\usepackage[utf8x]{inputenc}

\moderncvstyle{casual} 

\moderncvcolor{green}  

\usepackage[scale=0.75]{geometry}

\name{Πέτρος}{Μουρούζης}

\title{Βιογραφικό}   

\address{Κωνσταντίνου Καραμανλή 77}{54642}{Θεσσαλονίκη}

\phone[mobile]{697.4936.202}   

\phone[fixed]{2310.911.890}                    

\email{[email protected]} 

\homepage{www.mourouzisdental.gr} 
\begin{document}

\makecvtitle

\section{Eκπαίδευση}

\cvitemwithcomment{2013-2018}{PhD in Operative Dentistry}{Aristotle
University of Thessaloniki}

\cvitemwithcomment{2011-2014}{MSc in Operative Dentistry}{Aristotle
University of Thessaloniki}

\cvitemwithcomment{2002-2007}{B.Sc in Dentistry}{Aristotle University of
Thessaloniki}

\cvitemwithcomment{1998-2002}{B.Sc in Physical Education}{Aristotle
University of Thessaloniki}

\section{Ξένες Γλώσσες}

\cvitemwithcomment{Γλώσσα}{Αγγλικά}{Επίπεδο C2}

\end{document}

带有希腊字体的英语示例

答案1

具有\usepackage[english, greek]{babel}意味着greek babel设置是整个文档的默认设置。由于greek选项将字体编码设置/切换为LGR,因此在用英语书写之前,您应该将babel上下文设置/更改为english(将自动将字体编码切换为T1)。您可以使用\selectlanguage{...}\foreignlanguage{...}{...}类似的babel命令(查看babel的文档)。

例如...

\documentclass[a4paper, 12pt, a4paper]{moderncv}
\usepackage[english, greek]{babel}
\usepackage[utf8x]{inputenc}
\moderncvstyle{casual}
\moderncvcolor{green}
\usepackage[scale=0.75]{geometry}
\name{Πέτρος}{Μουρούζης}
\title{Βιογραφικό}
\address{Κωνσταντίνου Καραμανλή 77}{54642}{Θεσσαλονίκη}
\phone[mobile]{697.4936.202}
\phone[fixed]{2310.911.890}
\email{[email protected]}
\homepage{www.mourouzisdental.gr}

\begin{document}
\makecvtitle

\section{Eκπαίδευση}
\selectlanguage{english}
\cvitemwithcomment{2013-2018}{PhD in Operative Dentistry}{Aristotle University of Thessaloniki}
\cvitemwithcomment{2011-2014}{MSc in Operative Dentistry}{Aristotle University of Thessaloniki}
\cvitemwithcomment{2002-2007}{B.Sc in Dentistry}{Aristotle University of Thessaloniki}
\cvitemwithcomment{1998-2002}{B.Sc in Physical Education}{Aristotle University of Thessaloniki}

\selectlanguage{greek}
\section{Ξένες Γλώσσες}
\cvitemwithcomment{Γλώσσα}{Αγγλικά}{Επίπεδο C2}
\end{document}

此外,在这种情况下没有什么特别的moderncv。您的问题只是以正确的方式编写多文字和多语言文档。

谨致问候,伊万

答案2

首先,避免utf8x。然后,用英语标记你想要的部分。

对于电子邮件和网址,必须使用间接方法,因为\textlatinhyperref尝试利用它们建立链接相冲突。

\documentclass[a4paper,12pt,a4paper]{moderncv}
\usepackage[scale=0.75,footskip=60pt]{geometry}

\usepackage[english, greek]{babel}
\usepackage[utf8]{inputenc}
\usepackage{etoolbox}

\moderncvstyle{casual}
\moderncvcolor{green}

\newrobustcmd{\emailaddress}{\textlatin{[email protected]}}
\newrobustcmd{\webaddress}{\textlatin{www.mourouzisdental.gr}}


\name{Πέτρος}{Μουρούζης}
\title{Βιογραφικό}
\address{Κωνσταντίνου Καραμανλή 77}{54642}{Θεσσαλονίκη}
\phone[mobile]{697.4936.202}
\phone[fixed]{2310.911.890}
\email{\emailaddress}
\homepage{\webaddress}

\begin{document}

\makecvtitle

\section{Eκπαίδευση}

\begin{otherlanguage*}{english}
\cvitemwithcomment{2013-2018}
  {PhD in Operative Dentistry}
  {Aristotle University of Thessaloniki}

\cvitemwithcomment{2011-2014}
  {MSc in Operative Dentistry}
  {Aristotle University of Thessaloniki}

\cvitemwithcomment{2002-2007}
  {B.Sc in Dentistry}
  {Aristotle University of Thessaloniki}

\cvitemwithcomment{1998-2002}
  {B.Sc in Physical Education}
  {Aristotle University of Thessaloniki}
\end{otherlanguage*}

\section{Ξένες Γλώσσες}

\cvitemwithcomment{Γλώσσα}
  {Αγγλικά}
  {Επίπεδο C2}

\end{document}

footskip为了避免警告而将其设置为太小的值。

在此处输入图片描述

相关内容