I tried editing the \cvdoubleitem
in the class moderncv
, style banking
. I wanted to boldface the categories. I tried the following but it gives a very weird alignment when I do so, although boldfacing the text correctly.
\renewcommand*{\cvdoubleitem}[5][.5em]{%
\cvitem[#1]{\bfseries#2}{%
\begin{minipage}[t]{\doubleitemcolumnwidth}#3\end{minipage}%
\hfill% fill of \separatorcolumnwidth
\begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintstyle{\bfseries#4}\end{minipage}%
\hspace*{\separatorcolumnwidth}%
\begin{minipage}[t]{\doubleitemcolumnwidth}#5\end{minipage}}}
However, this produces, on 2 double items (4 items),
I thought editing the code here might help but that original code itself gave me an error so I didn't try.
An MWE is given below:
\documentclass[12pt,letterpaper,sans]{moderncv}
\moderncvstyle{banking}
\name{ieujrghieu}{wirjufhiuryg}
\renewcommand*{\cvdoubleitem}[5][.5em]{%
\cvitem[#1]{\bfseries#2}{%
\begin{minipage}[t]{\doubleitemcolumnwidth}#3\end{minipage}%
\hfill% fill of \separatorcolumnwidth
\begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintstyle{\bfseries#4}\end{minipage}%
\hspace*{\separatorcolumnwidth}%
\begin{minipage}[t]{\doubleitemcolumnwidth}#5\end{minipage}}}
\begin{document}
\cvdoubleitem{TTTTTTT}{doiuehneiuhrigbn3ghbn iurh fg3iuh gi3uh giu43ygh iu3 ghiu3rg3iu}{GGGGGGGGGG}{eihg uegh iuh 39uf h23 948h f924 fu4g fiuf 2iuf g4iuf g}
\cvdoubleitem{PPPPPPPPP}{rusfhvioehr iughe r}{MMMMMM}{3iurgh re3uygh 3eur}
\end{document}
hintfont
.cvdoubleitem
is callingcvitem
. That is far from what the template is supposed to do and leads to the weird alignment.