I have a problem with moderncv
banking. I'd like to put my name and the title on different lines. There are some solutions on the subjects, but they did not work fine for me unfortunately. Here is a solution I have found here (I tried it but didn't work so far):
Name and Title on separate lines in Modern CV
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.85, top=1.5cm, bottom=1cm]{geometry}
\usepackage{enumitem}
\name{John}{Smith}
\title{Engineering Degree}
\phone[mobile]{00.00.00.00}
\email{[email protected]}
\social[linkedin]{john-smith}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\maketitle}{\titlestyle{~|~\@title}}{\par\vskip1ex\titlestyle{\@title}}{}{}
\makeatother
\xpatchcmd
, replace\maketitle
by\makehead
, such that the line starts with\xpatchcmd{\makehead}{\titlestyle
... The problem with patches is that they stop working as soon as the internals of the patched code change. Apparently code that was in the macro\maketitle
has been moved to\makehead
in a later version.