\section header 大写字母和小写字母 {银行}

\section header 大写字母和小写字母 {银行}

我正在工作\moderncvstyle{banking},我希望有一个,\section{Education}首字母为大写字母,其余字母为小写字母。我读了很多以前的问题,但没有一个适用于\moderncvstyle{banking}。我复制了代码。谢谢!

\documentclass[11pt,a4paper,sans]{moderncv}      
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{fancyhdr}


\pagestyle{fancy}
\lhead{My Name}

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\thispagestyle{empty}

% moderncv themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{red}                                
\nopagenumbers{}
\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding 
\usepackage[scale=0.75]{geometry}


% personal data

\name{My}{Name}
\title{Curriculum Vitae}                               % optional, remove / comment the line if not wanted
\address{street and number}{postcode city}{}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty
\phone[mobile]{~()~}                   % optional, remove / comment the line if not wanted
\renewcommand*{\maketitlesymbol}{~~~~~~~~}
\phone[fixed]{~()~~}                    % optional, remove / comment the line if not wanted


\quote{"quote,\\
" (some). }                                 % optional, remove / comment the line if not wanted
\usepackage{xpatch}
\xpatchcmd{\maketitle}
  {\\[2.5em]}
  {\\[10pt]} % or whatever: space above the quote
  {}{}

\begin{document}

\makecvtitle

\section{EDUCATION}
\cventry{year--year}{\textbf{M.Sc, Master}}{Some University}{\normalfont{Some, Some}}{}
{\begin{itemize} 
\item[\textbullet] some
\end{itemize}}

\end{document}

答案1

例如,您可以通过调用\usepackage{libertine}序言来使用 Libertine 字体。然后您可以使用\section{\scshape Education}将第一个字母设为大写字母,其余字母设为小写字母...

使用以下 MWE

\documentclass[%
  11pt,
  a4paper,
  sans
]{moderncv} 

\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{libertine} % <==============================================
\usepackage[scale=0.75]{geometry}

\pagestyle{fancy}
\lhead{My Name}

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\thispagestyle{empty}

% moderncv themes
\moderncvstyle{banking} 
\moderncvcolor{red}
\nopagenumbers{}


\name{My}{Name}
\title{Curriculum Vitae}
\address{street and number}{postcode city}{}
\phone[mobile]{~()~}
%\renewcommand*{\maketitlesymbol}{~~~~~~~~} % error with version 2.0.0
\phone[fixed]{~()~~}

\quote{"quote,\\
" (some). }
\usepackage{xpatch}
\xpatchcmd{\maketitle}
  {\\[2.5em]}
  {\\[10pt]} % or whatever: space above the quote
  {}{}


\begin{document}

\makecvtitle

\section{\scshape Education} % <========================================
\cventry{year--year}{\textbf{M.Sc, Master}}{Some University}{\normalfont{Some, Some}}{}
{\begin{itemize} 
\item[\textbullet] some
\end{itemize}}

\end{document}

得到结果:

产生的简历

相关内容