[Tex/LaTex] Text going off the page in Latex Document

line-breakingtables

I am hoping someone can help me. The text in the achievement section is going off the page and not breaking onto the new page.

\section {Achievements}
\begin{tabular}{rl}
Sep 2015 - Current:& 
\textsc Working alongside the University to encourage the participation in sporting activities within the schools of Computer Science and Mathematics
\end{tabular}

What is the solution to preventing this from happening?

Thanks

Best Answer

By default, no wrapping of text occurs within a left-, right or centre-aligned tabular cell. Instead, you can use a paragraph alignment, or perhaps tabularx's X-alignment:

enter image description here

\documentclass{article}

\usepackage{tabularx,ragged2e}

\begin{document}

\section{Achievements}

\noindent
\begin{tabular}{rl}
  Sep 2015 - Current: & 
    Working alongside the University to encourage the participation in sporting 
    activities within the schools of Computer Science and Mathematics
\end{tabular}

\noindent
\begin{tabularx}{\linewidth}{ @{} r X @{} }
  Sep 2015 - Current: & 
    Working alongside the University to encourage the participation in sporting 
    activities within the schools of Computer Science and Mathematics \\

  Sep 2015 - Current: & \raggedright\arraybackslash
    Working alongside the University to encourage the participation in sporting 
    activities within the schools of Computer Science and Mathematics \\

  Sep 2015 - Current: & \RaggedRight
    Working alongside the University to encourage the participation in sporting 
    activities within the schools of Computer Science and Mathematics
\end{tabularx}

\end{document}
Related Question