![很棒 - CV 编辑部分。将其设为大写并居中](https://linux22.com/image/331097/%E5%BE%88%E6%A3%92%20-%20CV%20%E7%BC%96%E8%BE%91%E9%83%A8%E5%88%86%E3%80%82%E5%B0%86%E5%85%B6%E8%AE%BE%E4%B8%BA%E5%A4%A7%E5%86%99%E5%B9%B6%E5%B1%85%E4%B8%AD.png)
使用的简历模板:很棒的简历。
我花了 3 个小时尝试将部分的所有字母都大写,并将单词的位置设置在文档的垂直中心。没有成功。
education.tex 是:
\cvsection{Education}
\begin{cventries}
\cventry
{B.S. in Computer Science and Engineering}
{POSTECH(Pohang University of Science and Technology)}
{Pohang, S.Korea}
{Mar. 2010 - PRESENT}
{
\begin{cvitems}
\item {Got a Chun Shin-Il Scholarship which is given to promising students in CSE Dept.}
\end{cvitems}
}
\end{cventries}
\cvsection 定义:
% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
%\par\addvspace{1.5ex}
%\phantomsection{}
\centering
\sectionstyle{#1}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{1ex}
}
\sectionstyle 定义:
\newcommand*{\sectionstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
\@sectioncolor 定义:
% Awesome section color
\newcounter{colorCounter}
\def\@sectioncolor#1#2#3{%
{%
\color{%
\ifcase\value{colorCounter}%
awesome\or%
awesome\or%
awesome\or%
awesome\or%
awesome\else%
awesome\fi%
} #1#2#3%
}%
\stepcounter{colorCounter}%
}
尝试包括:
\def\textlcsc[1]{\textsc{\lowercase{#1}}}
- 这并不准确。链接丢失了,但记忆中提到了我记得的内容。
答案1
\vhrulefill 创建一条水平线。只需在名称条目前创建一条线即可。即下面的 \sectionstyle{#1}。
\cvsection 定义:
% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
%\par\addvspace{1.5ex}
%\phantomsection{}
\centering
\sectionstyle{#1}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{1ex}
}
新的 \cvsection 定义:
% Define a section for CV
% Usage: \cvsection{<section-title>}
\newcommand{\cvsection}[1]{
%\par\addvspace{1.5ex}
\color{gray}\vhrulefill{0.9pt} %New addition
%\phantomsection{}
\centering
\sectionstyle{#1}
\color{gray}\vhrulefill{0.9pt}
\par\nobreak\addvspace{1ex}
}
仅供参考,以下没有变化。
\vhrulefill 定义:
% Use to draw horizontal line with specific tickness
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
答案2
当前版本可在 github 上获取:
\makeatletter
\renewcommand{\cvsection}[1]{%
\vspace{\acvSectionTopSkip}
\hbox{}%
\color{gray}\vhrulefill{0.9pt}
\sectionstyle{#1}
\phantomsection
\color{gray}\vhrulefill{0.9pt}
}
\renewcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\strut\bodyfont\bfseries\color{text}\scshape\@sectioncolor #1}}
\makeatother
我避免将整个章节标题大写,并限制输出使用小型大写字母。