文本溢出,为什么会这样?

文本溢出,为什么会这样?

我是双重新手。第一次使用 StackExchange,第一次使用 Latex 进行实际操作(我练习了很多,但不是针对相关内容)。

这是我的简历。我正在修改下载的模板。我遇到了错误,我不明白为什么会发生这种情况。在技能部分,文本溢出了。你能帮帮我吗?

这是一张图片: 文字溢出

下面是代码:

%----------------------------------------------------------------------------------------
%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[a4paper,10pt]{article} % Default font size and paper size

\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font

\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages

\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors

\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be 
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}

\usepackage{hyperref} % Required for adding links   and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document

\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections


\begin{document}

\pagestyle{empty} % Removes page numbering

\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
\DeclareFontFamily{OT1}{pcr}{\hyphenchar \font\m@ne}


%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION
%----------------------------------------------------------------------------------------

\par{\centering{\Huge Ricardo \textsc{XXXXXX}}\bigskip\par} % Your name

\section{Personal Data}

\begin{tabular}{rl}
\textsc{Place and Date of Birth:} & MXXXXd  | XXX December XXX \\
\textsc{Address:} & AXXX, Madrid, Spain \\
\textsc{Phone:} & +31 6XXXX94\\
\textsc{email:} & \href{mailto:[email protected]}{[email protected]}
\end{tabular}


%----------------------------------------------------------------------------------------
%   EDUCATION
%----------------------------------------------------------------------------------------

\section{Education}

\begin{tabular}{rl} 
\textsc{July} 2016 & [Scholarship] XXXXXX Build program for \textsc{Entrepreneurship},\\ & \textbf{XXXXXXXX}, Machasusets\\

&\\


%------------------------------------------------

\textsc{} 2008 & [Scholarship] Erasmus Exchange Program\\ & \textbf{École Nationale XXXXXXXXX}, Lyon\\
&\\

\textsc{July} 2016& Local Master in \textsc{}\textsc{XXXXX} \\ & \normalsize\textbf{XXXXXXX}, Madrid\\
&\\


\textsc{July} 2016& Bachelor + Master in \textsc{}\textsc{Architecture} \\ & \normalsize\textbf{XXXXX}, Madrid\\

& - Publication at tomorrow blebleble\\
&\normalsize \textsc{Honors XXXXX}\\
&\\

%------------------------------------------------
%------------------------------------------------

\textsc{June} 2009&  International Baccalaureate (sciences branch) \\ & \textbf{XXX}, Madrid
\end{tabular}


%----------------------------------------------------------------------------------------
%   LANGUAGES
%----------------------------------------------------------------------------------------

\section{Languages}

\begin{tabular}{rl}
\textsc{Spanish:} & Mothertongue\\
\textsc{English:} & Fluent\\


\textsc{French:} & Fluent\\
\textsc{Italian:} & Basic Comunication Skills\\
\textsc{Dutch:} & Basic Knowledge\\


\end{tabular}

%----------------------------------------------------------------------------------------
%   COMPUTER SKILLS 
%----------------------------------------------------------------------------------------

\section{Computer Skills}

\begin{tabular}{rl}
Basic: & \textsc{php}, my\textsc{sql},  Python,  {\LaTeX} \\

Intermediate: & \textsc{html}, CSS, Wordpress, Excel, Illustrator, Indesign, Laser Machines, Video Postproduction (Premiere + After Effects) \\

Expert: & \textsc{vba}, Word, PowerPoint, Photoshop, 3D Modeling and Rendering (Rhino + Vray), Parametric Design (Rhino + Grasshopper), Autocad, Autocad Map 3d\\

\end{tabular}

%----------------------------------------------------------------------------------------
%   INTERESTS AND ACTIVITIES
%----------------------------------------------------------------------------------------

\section{Interests and Activities}

Technology, Open-Source, Programming\\
Paradoxes in Decision Making, Psychoanalysis, Behavioural Finance\\
Football, Travelling

%----------------------------------------------------------------------------------------

\newpage


%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE 
%----------------------------------------------------------------------------------------

\section{Work Experience}

\begin{tabular}{r|p{11cm}}
    \emph{Current} & Freelance webdesigner, architect and XXXXXXX design expert\textsc{}, XXXXXXXX \\
    \textsc{Mar 2012} 
    & \footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \emph{Current} & Architect at \textsc{SXXXXXXX}, Madrid \\
    \textsc{Mar 2012} 
    & \footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jul 2010-Oct 2011} & Computer Graphics Artist at \textsc{XXXXX}, XXXXX, Madrid. \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jul 2010-Oct 2011} & Architecture Intern at \textsc{XXXXXX}, Barcelona \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jul 2010-Oct 2011} & Architecture Intern at \textsc{XXXXXX}, Madrid \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jan-Mar 2009} & Architecture Intern at \textsc{XXXXXX}, London \emph{}\\
    & \footnotesize{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}
\end{tabular}

%----------------------------------------------------------------------------------------
%   WORK EXPERIENCE 
%----------------------------------------------------------------------------------------

\section{Extracurricular}

\begin{tabular}{r|p{11cm}}
        %------------------------------------------------


    %------------------------------------------------

    \textsc{Jan-Mar 2009} & Volunteer at \textsc{XXXXXArchaeological Project}, XXX, XXX\emph{}\\
    & \footnotesize{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}
\end{tabular}


\end{document}

答案1

使用tabularxX列类型来实现自动换行。P 借此机会改进了您的表格,以便第一列宽度几乎相等的连续表格具有完全相同的宽度(使用 from \eqmakeboxeqparbox

%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[a4paper,10pt]{article} % Default font size and paper size

\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font

\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages

\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors

\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}

\usepackage{hyperref} % Required for adding links and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document

\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\usepackage{tabularx, eqparbox}%

 \begin{document}

\pagestyle{empty} % Removes page numbering

\font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section
\DeclareFontFamily{OT1}{pcr}{\hyphenchar \font\m@ne}


%----------------------------------------------------------------------------------------
% NAME AND CONTACT INFORMATION
%----------------------------------------------------------------------------------------

\par{\centering{\Huge Ricardo \textsc{XXXXXX}}\bigskip\par} % Your name

\section{Personal Data}

\begin{tabular}{rl}
\textsc{Place and Date of Birth:} & MXXXXd | XXX December XXX \\
\textsc{Address:} & AXXX, Madrid, Spain \\
\textsc{Phone:} & +31 6XXXX94\\
\textsc{email:} & \href{mailto:[email protected]}{[email protected]}
\end{tabular}


%----------------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------------

\section{Education}

\begin{tabular}{rl}
\eqmakebox[J][r]{\textsc{July} 2016 }& [Scholarship] XXXXXX Build program for \textsc{Entrepreneurship},\\ & \textbf{XXXXXXXX}, Massachusetts\\

&\\


%------------------------------------------------

\textsc{} 2008 & [Scholarship] Erasmus Exchange Program\\ & \textbf{École Nationale XXXXXXXXX}, Lyon\\
&\\

\textsc{July} 2016& Local Master in \textsc{}\textsc{XXXXX} \\ & \normalsize\textbf{XXXXXXX}, Madrid\\
&\\


\textsc{July} 2016& Bachelor + Master in \textsc{}\textsc{Architecture} \\ & \normalsize\textbf{XXXXX}, Madrid\\

& - Publication at tomorrow blebleble\\
&\normalsize \textsc{Honors XXXXX}\\
&\\

%------------------------------------------------
%------------------------------------------------

\textsc{June} 2009& International Baccalaureate (sciences branch) \\ & \textbf{XXX}, Madrid
\end{tabular}


%----------------------------------------------------------------------------------------
% LANGUAGES
%----------------------------------------------------------------------------------------

\section{Languages}

\begin{tabular}{rl}
\eqmakebox[J][r]{\textsc{Spanish:}} & Mothertongue\\
\textsc{English:} & Fluent\\


\textsc{French:} & Fluent\\
\textsc{Italian:} & Basic Communication Skills\\
\textsc{Dutch:} & Basic Knowledge\\


\end{tabular}

%----------------------------------------------------------------------------------------
% COMPUTER SKILLS
%----------------------------------------------------------------------------------------

\section{Computer Skills}

\begin{tabularx}{\linewidth}{r >{\arraybackslash}X@{}}
Basic: & \textsc{php}, my\textsc{sql}, Python, {\LaTeX} \\

Intermediate: & \textsc{html}, CSS, Wordpress, Excel, Illustrator, Indesign, Laser Machines, Video Postproduction (Premiere + After Effects) \\

Expert: & \textsc{vba}, Word, PowerPoint, Photoshop, 3D Modeling and Rendering (Rhino + Vray), Parametric Design (Rhino + Grasshopper), Autocad, Autocad Map 3d\\

\end{tabularx}

%----------------------------------------------------------------------------------------
% INTERESTS AND ACTIVITIES
%----------------------------------------------------------------------------------------

\section{Interests and Activities}

Technology, Open-Source, Programming\\
Paradoxes in Decision Making, Psychoanalysis, Behavioural Finance\\
Football, Travelling

%----------------------------------------------------------------------------------------

\newpage


%----------------------------------------------------------------------------------------
% WORK EXPERIENCE
%----------------------------------------------------------------------------------------

\section{Work Experience}

\begin{tabularx}{\linewidth}{r| >{\arraybackslash}X}
    \emph{Current} & Freelance webdesigner, architect and XXXXXXX design expert\textsc{}, XXXXXXXX \\
    \textsc{Mar 2012}
    & \footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \emph{Current} & Architect at \textsc{SXXXXXXX}, Madrid \\
    \textsc{Mar 2012}
    & \footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jul 2010-Oct 2011} & Computer Graphics Artist at \textsc{XXXXX}, XXXXX, Madrid. \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jul 2010-Oct 2011} & Architecture Intern at \textsc{XXXXXX}, Barcelona \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \eqmakebox[L]{\textsc{Jul 2010-Oct 2011}} & Architecture Intern at \textsc{XXXXXX}, Madrid \emph{}\\
    & \footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}\\
    \multicolumn{2}{c}{} \\

    %------------------------------------------------

    \textsc{Jan-Mar 2009} & Architecture Intern at \textsc{XXXXXX}, London \emph{}\\
    & \footnotesize{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}
\end{tabularx}

%----------------------------------------------------------------------------------------
% WORK EXPERIENCE
%----------------------------------------------------------------------------------------

\section{Extracurricular}


\begin{tabularx}{\linewidth}{r| >{\arraybackslash}X}
        %------------------------------------------------


    %------------------------------------------------

    \eqmakebox[L][r]{\textsc{Jan-Mar 2009}} & Volunteer at \textsc{XXXXXArchaeological Project}, XXX, XXX\emph{}\\
    & \footnotesize{Worked in the Nerd Herd and helped to solve computer problems by asking customers to turn their computers off and on again.}
\end{tabularx}

\end{document} 

在此处输入图片描述 在此处输入图片描述

相关内容