Estoy escribiendo mi CV en LaTeX y no sé por qué, pero el siguiente código corta mi primer párrafo por la mitad. Debería ser sencillo saber por qué pero he estado buscando durante las últimas horas y no encontré nada. ¿Alguien puede ayudarme? Lo siento de antemano si mi pregunta es demasiado obvia :(
\documentclass[a4paper, 12pt, oneside, final]{scrartcl}
\usepackage[left=4.7cm, right=0.85cm, top=0.65cm, bottom=0.70cm]{geometry}
\usepackage{soul}
\usepackage{scrpage2}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage{tabularx}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\pagestyle{empty}
\usepackage{enumitem}
\usepackage{color}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{scrextend}
\usepackage{marvosym}
\usepackage{xcolor}
\definecolor{blue}{RGB}{0,25,80}
% Title format
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\color{blue}\titlerule[0.8pt]}]
\titlespacing*{\section}
{0pt}{3.8ex plus 0ex minus 0ex}{2ex plus 0ex}
% Left margin
\reversemarginpar
\marginparwidth 96pt
% DOCUMENT
% ---------------------------------------------------------------------
\begin{document}
% Command label item
\renewcommand{\labelitemi}{\raise .5ex\hbox{\tiny$\bullet$}}
\newcommand{\mymarginnote}[1]{\leavevmode
\marginpar{\normalsize\textcolor{black}{#1}}%
\ignorespaces}
\setlength\parindent{0pt}
\setlength{\parskip}{0pt plus 0pt minus 0pt}
% Personal informations and picture
\setlength{\fboxsep}{0pt}%
\setlength{\fboxrule}{0.7pt}%
\begin{wrapfigure}{r}{00mm}
\hfill
\fbox{\includegraphics[scale=0.125]{cv_picture.jpg}}
\end{wrapfigure}
\mymarginnote{\smash{\fontsize{13.5}{30}\textbf{Branch Warren}}}
\mbox{}
\mymarginnote{alabama 17 \\ 1870 bessemer \\ usa \\ +4179 277320 \\ bbbranch}
Born on the 4th of March 1700
Single
US nationality
Military duties completed
[email protected]
% Objective
\section{Objective}
I am looking for a full-time position at stack overflow where my skills will add value to my employer's business.
\end{document}
Respuesta1
Con pequeños cambios en tu código (que no son esenciales):
\documentclass[a4paper, 12pt, oneside, final]{scrartcl}
\usepackage[left=4.7cm, right=0.85cm, top=0.65cm, bottom=0.70cm]{geometry}
\usepackage{soul}
\usepackage{scrpage2}
\usepackage{titlesec}
\usepackage{tabularx}
\usepackage{marvosym}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{amsmath,amssymb,mathrsfs}
\usepackage{scrextend}
\usepackage{xcolor}
\definecolor{blue}{RGB}{0,25,80}
% Title format
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\color{blue}\titlerule[0.8pt]}]
\titlespacing*{\section}
{0pt}{3.8ex plus 0ex minus 0ex}{2ex plus 0ex}
% Left margin
\reversemarginpar
\marginparwidth 96pt
% Command label item
\renewcommand{\labelitemi}{\raise .5ex\hbox{\tiny$\bullet$}}
\newcommand{\mymarginnote}[1]{\leavevmode
\marginpar{\normalsize\textcolor{black}{#1}}%
\ignorespaces}
\setlength\parindent{0pt}
\setlength{\parskip}{0pt plus 0pt minus 0pt}
% DOCUMENT
% ---------------------------------------------------------------------
\begin{document}
\pagestyle{empty}
% Personal informations and picture
\setlength{\fboxsep}{0pt}%
\setlength{\fboxrule}{0.7pt}%
\begin{wrapfigure}{r}{00mm}
\fbox{\includegraphics[width=33mm]{example-image}}
\end{wrapfigure}
\mymarginnote{\smash{\fontsize{13.5}{30}\textbf{Branch Warren}}}
\mymarginnote{alabama 17 \\ 1870 bessemer \\ usa \\
\, +4179 277320 \\
\, bbbranch}
Born on the 4th of March 1700
Single
US nationality
Military duties completed
\Letter \, [email protected]
% Objective
\section{Objective}
I am looking for a full-time position at stack overflow where my skills will add value to my employer's business.
\end{document}
Yo obtengo:
Los cambios en el código anterior en comparación con su MWE son: (i) se eliminaron todos los paquetes cargados dos veces (ii) todas \newcommand
las definiciones se movieron al preámbulo, (iii) pagestyle{...}
se movieron del preámbulo al contenido del documento, inmediatamente después \begin{document
, (iv) el tamaño de la imagen es determinado por width= 33mm
.
Sospecho que probablemente tengas problemas con el tamaño de la imagen. En lugar de ello, la escala determina su anchura o, mejor aún, su altura.
Respuesta2
En mi opinión, estás utilizando las herramientas equivocadas.
El encabezado puede ser un solo cuadro, en el que se pueden colocar otros cuadros “a mano”, por ejemplo con tabular
.
El 3.7cm
largo dejará la parte izquierda a 1cm del margen del papel.
\documentclass[a4paper, 12pt, oneside, final]{scrartcl}
\usepackage[left=4.7cm, right=0.85cm, top=0.65cm, bottom=0.70cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[francais]{babel}
\usepackage{scrpage2}
\usepackage{scrextend}
\usepackage{titlesec} % not really compatible with scrartcl
\usepackage{graphicx}
\usepackage{xcolor}
\definecolor{blue}{RGB}{0,25,80}
% Title format
\titleformat{\section}{\large\scshape\raggedright}{}{0em}{} [{\color{blue}\titlerule[0.8pt]}]
\titlespacing*{\section}{0pt}{3.8ex plus 0ex minus 0ex}{2ex plus 0ex}
% Command label item
\renewcommand{\labelitemi}{\raise .5ex\hbox{\tiny$\bullet$}}
\setlength\parindent{0pt}
\setlength{\parskip}{0pt plus 0pt minus 0pt}
\pagestyle{empty}
\setlength{\fboxsep}{0pt}%
\setlength{\fboxrule}{0.7pt}%
% DOCUMENT
% ---------------------------------------------------------------------
\begin{document}
\noindent\makebox[\textwidth]{%
\hspace{-3.7cm}%
\begin{tabular}{@{}l@{}l@{}}
\multicolumn{2}{@{}l@{}}{\fontsize{13.5}{0}\textbf{Branch Warren}}\\[1ex]
\parbox[t]{3.7cm}{
alabama 17 \\
1870 bessemer \\
usa \\
+4179 277320 \\
bbbranch
} &
\begin{tabular}[t]{@{}l@{}}
Born on the 4th of March 1700 \\
Single \\
US nationality \\
Military duties completed \\
\texttt{[email protected]}
\end{tabular}
\end{tabular}%
\hfill
\begin{tabular}{@{}c@{}}
\fbox{\includegraphics[width=4cm,height=3cm]{example-image}}
\end{tabular}%
}
% Objective
\section{Objective}
I am looking for a full-time position at stack overflow where
my skills will add value to my employer's business.
\end{document}
Eliminé todo el paquete innecesario. Me fui babel
, aunque parezca gracioso: supongo que escribirás el CV en francés.