ModernCV babel 和粗体文本问题

ModernCV babel 和粗体文本问题

我遇到了 moderncv 和希腊语的问题,所以一位用户告诉我在我的代码中添加这几行(看这里

\usepackage{xpatch}
\makeatletter
% provide an expandable version of \roman
\newcommand{\exproman}[1]{\romannumeral\csname c@#1\endcsname}
% patch the commands in moderncv that use \roman
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\collectionadd}{\roman}{\exproman}{}{}
\xpatchcmd{\collectionadd}{\roman}{\exproman}{}{}
\makeatother

但从那时起,我无法将一些标题加粗,例如我的名字或教育、经验等。当我将它们加粗时,什么也没有发生,我没有收到错误,但文本也没有加粗。对此有什么想法吗?

例如 :

%% start of file `template.tex'.
%% Copyright 2006-2013 Xavier Danaux ([email protected]).
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version 1.3c,
% available at http://www.latex-project.org/lppl/.


\documentclass[11pt,a4paper,roman]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

\usepackage{xpatch}

\makeatletter
% provide an expandable version of \roman
\newcommand{\exproman}[1]{\romannumeral\csname c@#1\endcsname}
% patch the commands in moderncv that use \roman
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\endcvcolumns}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\cvcolumn}{\roman}{\exproman}{}{}
\xpatchcmd{\collectionadd}{\roman}{\exproman}{}{}
\xpatchcmd{\collectionadd}{\roman}{\exproman}{}{}
\makeatother


% modern themes
\moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'
%\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
%\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page

% character encoding
\usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using
\usepackage[english,greek]{babel}
%\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

% adjust the page margins
\usepackage[scale=0.75]{geometry}
%\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates
%\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

\usepackage{import}

% personal data
\name{\textbf{test}}{text}

相关内容