\cvitemwithcomment
第二个参数可以使用不带粗体字体吗?
梅威瑟:
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\firstname{John}
\familyname{Doe}
\begin{document}
\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{Frensh}{Native}{Mother Tongue}
\end{document}
答案1
是的。
只需在第二个参数中插入\mdseries
(覆盖默认值):\bfseries
\cvitemwithcomment{French}{\mdseries Native}{Mother Tongue}
完成 MWE
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\firstname{John}
\familyname{Doe}
\begin{document}
\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{French}{\mdseries Native}{Mother Tongue}
\end{document}
输出
编辑
如果您想在文档中全局更改此行为,您可以在序言中添加以下几行
\usepackage{xpatch}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
这样你的 MWE 就变成:
% compile with LuaLaTeX
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\usepackage[ngerman]{babel}
\usepackage{xpatch}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
\xpatchcmd{\cvitemwithcomment}{\bfseries}{\mdseries}{}{}
\firstname{John}
\familyname{Doe}
\begin{document}
\cvitemwithcomment{German}{Native}{Mother Tongue}
\cvitemwithcomment{French}{Native}{Mother Tongue}
\end{document}