我正在尝试使用 编写 CV,moderncv.cls
但遇到了丹麦语特殊字符 æ、ø、å 的问题。通常我会将\usepackage[utf8]{inputenc}
或\usepackage[applemac]{inputenc}
包添加到我的模板中,但实际上这不起作用。
该moderncv.cls
文件包含以下部分:
\RequirePackage[T1]{fontenc}
\IfFileExists{lmodern.sty}%
{\RequirePackage{lmodern}}%
{}
\usepackage[utf8]{inputenc}
通常我以前会这样做fontenc
,但这\RequirePackage
似乎搞砸了。我使用 Texmaker 和 MacOS。
有人知道我该如何添加该包吗?
梅威瑟:
\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman
\moderncvstyle{casual} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name
%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------
\firstname{Lonnie} % Your first name
\familyname{Andersen} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{Curriculum Vitae}
\address{Gladsaxevej 78, st tv, 2860 Søborg}
\mobile{+45 31444177}
\email{[email protected]}
\extrainfo{additional information}
%\photo[70pt][0.4pt]{pictures/Lonnie} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
%\quote{"A witty and playful quotation" - John Smith}
%----------------------------------------------------------------------------------------
\begin{document}
\makecvtitle % Print the CV title
%----------------------------------------------------------------------------------------
% EDUCATION SECTION
%----------------------------------------------------------------------------------------
\section{Education}
\cventry{2009--2013}{Ph.D student}{DTU Wind Energy}{}{Currently finishing thesis}{}
\cventry{2003--2009}{Cand. Scient in Biomedical engineering}{DTU}{}{\textit{GPA -- 8.4}}{}
\end{document}
答案1
这与文件的编码无关。(尽管您的示例\usepackage[utf8]{inputenc}
中应该有。)
\address
中的宏需要moderncv
2 个参数,而您只提供了一个。然后它尝试将\mobile
宏读取为第二个参数,并出现错误。
因此你需要:
\address{Gladsaxevej 78, st tv}{2860 Søborg}
(或类似内容)作为您的地址行。