答案1
从图片中我可以看到你正在使用风格casual
。
在样式上,casual
标题名称的定义是
{\color{color2!50}\@firstname} {\color{color2}\@lastname}
要将 firstname 和 lastname 的顺序更改为 lastname 和 firstline,您必须使用该行
{\color{color2}\@lastname} {\color{color2!50}\@firstname}
您必须\makecvhead
像这样修补命令:
\makeatletter
\patchcmd{\makecvhead}%
{
{\color{color2!50}\@firstname} {\color{color2}\@lastname}\fi%
}%search
{
{\color{color2}\@lastname} {\color{color2!50}\@firstname}\fi%
}%replace
{}%success
{fehler}%failure
\makeatother
使用以下完整的 MWE
\documentclass[11pt,a4paper,sans]{moderncv}
% moderncv themes
\moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
% 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]{example-image-golden-upright}%
\quote{Some quote}
\setlength{\footskip}{66pt}
\makeatletter % <=======================================================
\patchcmd{\makecvhead}%
{
{\color{color2!50}\@firstname} {\color{color2}\@lastname}\fi%
}%search
{
{\color{color2}\@lastname} {\color{color2!50}\@firstname}\fi% <=====
}%replace
{}%success
{fehler}%failure
\makeatother % <========================================================
\begin{document}
\makecvtitle
\section{Education}
\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6} % arguments 3 to 6 can be left empty
\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}
您将获得以下第一页: