
É possível ter um título e um nome longos na mesma linha moderncv
? Atualmente, está assim:
O ideal seria que não houvesse quebra de linha após Juantostos. Tentei descomentar o \setlength{\makecvtitlenamewidth}{12cm}
mas é para o estilo 'clássico' e também dá erro de compilação
(Undefined control sequence)
.
Estou usando o Overleaf.
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.75]{geometry}
%\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{upgreek}
\usepackage{import}
% personal data
\name{John}{Juanostos Buenos}
\title{Curriculum Vitae}
\address{Something}{Stuff 34 more stuff here}{}
\phone[mobile]{+34 342453533}
\extrainfo{FNAC.: 07/19/1985}
\email{[email protected]}
\begin{document}
\makecvtitle
\end{document}
Responder1
Aqui está uma opção:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\usepackage{etoolbox,changepage}
\patchcmd{\makehead}% <cmd>
{0.8\textwidth}% <search>
{\linewidth}% <replace>
{}{}% <success><failure>
% personal data
\name{John}{Juanostos Buenos}
\title{Curriculum Vitae}
\address{Something}{Stuff 34 more stuff here}{}
\phone[mobile]{+34 342453533}
\extrainfo{FNAC.: 07/19/1985}
\email{[email protected]}
\begin{document}
% Increase block width by 1cm on both sides
\begin{adjustwidth}{-1cm}{-1cm}
\makecvtitle
X\dotfill X
\end{adjustwidth}
Y\dotfill Y
\end{document}
Fazemos duas coisas:
Patch
\makehead
para aumentar a largura do cabeçalho de0.8\textwidth
para\linewidth
. No mínimo, isso irá defini-lo em\textwidth
. Porém, por\textwidth
ser rígido (ou fixo), podemos......usar
adjustwidth
(dechangepage
) para aumentar a largura temporariamente apenas para o título.
No exemplo acima X.....X
representa a largura usada para o título e Y.....Y
a largura do bloco de texto subsequente.