
¿Es posible tener un título y un nombre largos en la misma línea moderncv
? Actualmente, se ve así:
Lo ideal sería que no haya salto de línea tras Juantostos. Intenté descomentar \setlength{\makecvtitlenamewidth}{12cm}
pero es para el estilo "clásico" y también da un error de compilación
(Undefined control sequence)
.
Estoy usando al dorso.
\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}
Respuesta1
Aquí hay una opción:
\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}
Hacemos dos cosas:
Parche
\makehead
para aumentar el ancho del encabezado de0.8\textwidth
a\linewidth
. Como mínimo, esto lo establecerá en\textwidth
. Sin embargo, como\textwidth
es rígido (o fijo) podemos......uso
adjustwidth
(dechangepage
) para aumentar el ancho temporalmente solo para el título.
En el ejemplo anterior, X.....X
se representa el ancho utilizado para el título y Y.....Y
el ancho del bloque de texto posterior.