答案1
这里的问题是类awesome-cv
处理字体的方式。让我们看一下技能的定义示例:
% For elements of skill
\newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}}
和命令\cvskill
:
% Define a line of cv information(skill)
% Usage: \cvskill{<type>}{<skillset>}
\newcommand*{\cvskill}[2]{%
\skilltypestyle{#1} & \skillsetstyle{#2} \\
}
因此,您必须将自己的字体规范添加到您的multicols
。最简单的方法是使用以下命令:
{ % start group for font
% \fontsize{9pt}{1em}\bodyfont
\fontsize{9pt}{9pt}\bodyfontlight\color{text} % <======================
\begin{multicols}{2}
\begin{itemize}
\item item 1 text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text
\item item 2 text text text text text text text text text text
\item item 3 text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text
\item item 4
\item item 5
\item item 6
\end{itemize}
\end{multicols}
} % end group
使用以下 MWE(下次询问时请添加一个)
\documentclass[11pt, a4paper]{awesome-cv} % A4 paper size by default, use 'letterpaper' for US letter
%\usepackage{multicol}
\geometry{left=2cm, top=1.5cm, right=2cm, bottom=2cm, footskip=.5cm} % Configure page margins with geometry
\usepackage{graphicx}
\fontdir[fonts/] % Specify the location of the included fonts
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new]{german}
\usepackage{tikz}
\usetikzlibrary{arrows}
\usepackage{multicol}
\usepackage{parallel}
% Color for highlights
\colorlet{awesome}{awesome-skyblue} % Default colors include: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange, awesome-nephritis, awesome-concrete, awesome-darknight
\colorlet{emphasis}{black}
\colorlet{body}{black!80!white}
%\definecolor{awesome}{HTML}{CA63A8} % Uncomment if you would like to specify your own color
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} % If you would like to change the social information separator from a pipe (|) to something else
% PERSONAL INFORMATION
% Comment any of the lines below if they are not required
%----------------------------------------------------------------------------------------
\name{James}{Bond}
\mobile{(+01) 234 56789}
\email{[email protected]}
\makecvfooter{\today}{James Bond~~~--~~~Curriculum Vitae}{\thepage}
%----------------------------------------------------------------------------------------
\begin{document}
\makecvheader % Print the header
%----------------------------------------------------------------------------------------
% CV/RESUME CONTENT
% Each section is imported separately, open each file in turn to modify content
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% SECTION TITLE
%----------------------------------------------------------------------------------------
\cvsection{Education}
%----------------------------------------------------------------------------------------
% SECTION CONTENT
%----------------------------------------------------------------------------------------
\begin{cventries}
%------------------------------------------------
\cventry
{Something} % Degree
{Highschool} % Institution
{Springfield} % Location
{2025} % Date(s)
{ % Description(s) bullet points
\begin{cvitems}
\item {Test, Test, Test}
\end{cvitems}
}
\cventry
{Something} % Degree
{Highschool} % Institution
{Springfield} % Location
{2025} % Date(s)
{ % Description(s) bullet points
\begin{cvitems}
\item {Test, Test, Test}
\end{cvitems}
}
\cventry
{Something else} % Degree
{University} % Institution
{Springfield} % Location
{2025} % Date(s)
{ % Description(s) bullet points
\begin{cvitems}
\item {Test, Test, Test}
\item {Test, Test, Test}
\item {Test, Test, Test}
\end{cvitems}
}
\cventry
{Another one} % Degree
{College} % Institution
{Springfield} % Location
{2025} % Date(s)
{ % Description(s) bullet points
\begin{cvitems}
\item {Test, Test, Test}
\end{cvitems}
}
\cventry
{Something} % Degree
{Highschool} % Institution
{Springfield} % Location
{2025} % Date(s)
{ % Description(s) bullet points
\begin{cvitems}
\item {Test, Test, Test}
\end{cvitems}
}
%------------------------------------------------
\end{cventries}
%----------------------------------------------------------------------------------------
% SECTION TITLE
%----------------------------------------------------------------------------------------
\cvsection{Skills}
%----------------------------------------------------------------------------------------
% SECTION CONTENT
%----------------------------------------------------------------------------------------
\begin{cvskills}
%------------------------------------------------
\cvskill
{Programming} % Category
{Python, C/C++, Scala, JAVA, Node.JS, OCaml, LaTeX} % Skills
%------------------------------------------------
\cvskill
{Web} % Category
{Django with Python, Express with Node.JS, HTML5, LESS} % Skills
%------------------------------------------------
\cvskill
{Languages} % Category
{Korean, English, Japanese, Chinese} % Skills
%------------------------------------------------
\end{cvskills}
\cvsection{Skills}
{ % start group for font
% \fontsize{9pt}{1em}\bodyfont
\fontsize{9pt}{9pt}\bodyfontlight\color{text}
\begin{multicols}{2}
\begin{itemize}
\item item 1 text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text
\item item 2 text text text text text text text text text text
\item item 3 text text text text text text text text text text
text text text text text text text text text text text text
text text text text text text text text text text
\item item 4
\item item 5
\item item 6
\end{itemize}
\end{multicols}
} % end group
%----------------------------------------------------------------------------------------
\end{document}
你得到了想要的结果: