我正在使用 AltaCV 模板来制作我的简历,有 2 列。
这是有关联系方式的部分:
\personalinfo{%
\email{[email protected]}
\phone{123456789}
\linkedin{my_linkedin}
\location{i will move to city xyz next month}
\github{my_github}
}
我想将城市名称“xyz”设置为粗体。
如果我像往常一样将文本设置为粗体:
\location{i will move to city \textbf{xyz} next month}
它无法正常工作。文本重复两次:
有什么想法吗?也许可以修改 altacv.cls 中的 personalinfo 字段?
提前致谢
如果你也想尝试的话,这里有完整的代码。你还需要阿尔塔克来自 Overleaf 的模板。
\documentclass[10pt,a4paper,ragged2e,withhyper]{altacv}
% Change the page layout if you need to
\geometry{left=3cm,right=3cm,top=3cm,bottom=3cm}
% The paracol package lets you typeset columns of text in parallel
\usepackage{paracol}
% Change the font if you want to, depending on whether
% you're using pdflatex or xelatex/lualatex
\ifxetexorluatex
% If using xelatex or lualatex:
\setmainfont{Roboto Slab}
\setsansfont{Lato}
\renewcommand{\familydefault}{\sfdefault}
\else
% If using pdflatex:
\usepackage[rm]{roboto}
\usepackage[defaultsans]{lato}
% \usepackage{sourcesanspro}
\renewcommand{\familydefault}{\sfdefault}
\fi
% Change the colours if you want to
\definecolor{SlateGrey}{HTML}{2E2E2E}
\definecolor{LightGrey}{HTML}{666666}
\definecolor{DarkPastelRed}{HTML}{450808}
\definecolor{PastelRed}{HTML}{8F0D0D}
\definecolor{GoldenEarth}{HTML}{E7D192}
\colorlet{name}{black}
\colorlet{tagline}{PastelRed}
\colorlet{heading}{DarkPastelRed}
\colorlet{headingrule}{GoldenEarth}
\colorlet{subheading}{PastelRed}
\colorlet{accent}{PastelRed}
\colorlet{emphasis}{SlateGrey}
\colorlet{body}{LightGrey}
% Change some fonts, if necessary
\renewcommand{\namefont}{\Huge\rmfamily\bfseries}
\renewcommand{\personalinfofont}{\footnotesize}
\renewcommand{\cvsectionfont}{\LARGE\rmfamily\bfseries}
\renewcommand{\cvsubsectionfont}{\large\bfseries}
% Change the bullets for itemize and rating marker
% for \cvskill if you want to
\renewcommand{\itemmarker}{{\small\textbullet}}
\renewcommand{\ratingmarker}{\faCircle}
% for today's date
\usepackage[ddmmyyyy]{datetime}
\newdateformat{mydateformat}{\THEDAY/\THEMONTH/\THEYEAR}
\begin{document}
\name{MyName}
\tagline{MyPosition}
\personalinfo{%
\email{[email protected]}
\phone{123456789}
\linkedin{my_linkedin}
\location{i will move to city \textbf{xyz} next month}
\github{my_github}
}
\makecvheader
{\color{headingrule}\hrule}
\vspace{4em}
\mydateformat\today
\vspace{\baselineskip}
BODY OF COVER LETTER
\end{document}