How to change font size of “cvname” of “twentysecondcv” class in LaTex

百般思念 提交于 2020-01-22 03:39:05

问题


I am creating a cv using "twentysecondcv" class. I am using predefined "cvname" element to write name but its a little bit larger and crossing the profile region(left side region). I am using like this.

\cvname{MY Name Here}

I want to make font size small so that it can fit into profile region. I tried to create new command (cvfname) like this.

\newcommand{\cvfname}[1]{\renewcommand{\cvfname}{#1}}
\patchcmd{\makeprofile}%
{%search
  \ifthenelse{\equal{\cvfname}{}}{}{\fontsize{} & \cvfname\\}%
}
{%replace
  \ifthenelse{\equal{\cvfname}{}}{}{\fontsize{8}{10}\mdseries\upshape & \cvfname\\}%
  \ifthenelse{\equal{\cvfname}{}}{}{\fontsize{8}{10}\mdseries\upshape & \cvfname\\}
}%
{}%success
{}%failure

Where am I doing wrong? How to do that ? Please Help.

来源:https://stackoverflow.com/questions/59553631/how-to-change-font-size-of-cvname-of-twentysecondcv-class-in-latex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!