使用会降低和\moderncvicons{awesome}
的物品符号(蓝色圆圈)。如何才能将它们重新提升到正常水平?\cvlistdoubleitem
\cvlistitem
梅威瑟:
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\moderncvicons{awesome}
\firstname{John}
\familyname{Doe}
\begin{document}
\cvlistdoubleitem{Ultimate Frisbee}{Climbing}
\cvlistitem{Travelling in Europe, Asia and North America}
\end{document}
答案1
更新(moderncv
v2.0)
moderncv
v2.0 使用 的最新版本fontawesome
,其中 符号\faCircleBlank
已被 替换为\faCircleO
,因此
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
必须替换为
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleO}}}
原始答案(适用于旧版本moderncv
)
将此行添加到你的序言中
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
完成 MWE
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\moderncvicons{awesome}
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
\firstname{John}
\familyname{Doe}
\begin{document}
\cvlistdoubleitem{Ultimate Frisbee}{Climbing}
\cvlistitem{Travelling in Europe, Asia and North America}
\end{document}
输出
PS 正如我在评论中所说,如果您使用 编译文档,则不需要这样做pdflatex
,而只是因为在这种情况下moderncv
将字体变成“marvosym”......
编辑
为了防止运行时出错,pdflatex
最好将其包起来
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
在\ifxetexorluatex
...\fi
声明中:
\ifxetexorluatex
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
\fi
这样之前的 MWE 就变成:
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\moderncvicons{awesome}
\ifxetexorluatex
\renewcommand*{\labelitemi}{\strut\textcolor{color1}{\raisebox{1pt}{\tiny\faCircleBlank}}}
\fi
\firstname{John}
\familyname{Doe}
\begin{document}
\cvlistdoubleitem{Ultimate Frisbee}{Climbing}
\cvlistitem{Travelling in Europe, Asia and North America}
\end{document}