我想申请\spacedlowsmallcaps
我的简历(moderncv)部分标题,但我不断收到一条错误消息,告诉我控制序列未定义。\spacedallcaps
也不起作用,但是\scshape
可以。
梅威瑟:
\documentclass[12pt,a4paper]{moderncv}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage[scale=0.75]{geometry}
\moderncvtheme[blue]{classic}
\setlength{\hintscolumnwidth}{0.27\textwidth}
\firstname{John}
\familyname{Doe}
\title{Curriculum Vitae}
\address{Lorem Ipsum}{Dolor Sit, Amet}
\mobile{(000) 111 1111}
\phone{(000) 111 1112}
\fax{(000) 111 1113}
\email{[email protected]}
\begin{document}
\maketitle
\section{\spacedlowsmallcaps{Persönliche Angaben}} %no error when using \scshape
\end{document}
感谢您的帮助!
答案1
\spacedlowsmallcaps
在 中的定义classicthesis.sty
,假设microtype
已加载,则为
\DeclareRobustCommand{\spacedlowsmallcaps}[1]{%
\textls[80]{\scshape\MakeTextLowercase{#1}}%
}
记得添加
\usepackage{microtype}
\usepackage{textcase}
你的序言。
但是,moderncv
你必须遵循不同的策略:
\documentclass[12pt,a4paper]{moderncv}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{microtype,textcase}
\usepackage{color}
\usepackage[scale=0.75]{geometry}
\moderncvtheme[blue]{classic}
\setlength{\hintscolumnwidth}{0.27\textwidth}
\renewcommand{\sectionfont}{\Large\normalfont\scshape}
\renewcommand{\sectionstyle}[1]{%
\sectionfont\textcolor{color1}{\textls[80]{\MakeTextLowercase{#1}}}%
}
\firstname{John}
\familyname{Doe}
\title{Curriculum Vitae}
\address{Lorem Ipsum}{Dolor Sit, Amet}
\mobile{(000) 111 1111}
\phone{(000) 111 1112}
\fax{(000) 111 1113}
\email{[email protected]}
\begin{document}
\maketitle
\section{Persönliche Angaben} %no error when using \scshape
Other text
\end{document}