对齐后我无法使文本显示在页面上(\hbox 溢出)

对齐后我无法使文本显示在页面上(\hbox 溢出)

有人能帮助文本出现在页面上并尝试保持其对齐吗

\documentclass[margin]{res}
\usepackage{amsmath}
\usepackage{epsfig}
\setlength{\textwidth}{5.1in}

\begin{document}
\section{Experience}
                            \begin{alignat*}{2}
                                             \text{Maintenence Worker} &- \text{Summers 2010 and 2011} &&- \text{Responsibilities included ensuring the upkeep of the grounds, being on-call to answer immediate problems, time management and working to a strict deadline} \\
                                    \text{Holt Hall Media Rep} &- \text{November 2011 to Present} &&- \text{Responsibilities included building a website for the Hall to advertise to new students, regular photography, regular videography, creativity and drive to improve the hall of residence} \\
                                    \text{Head of School} &- \text{Saint Felix School} &&- \text{Responsibilities included regular meetings with the headmaster to continue to provide ongoing support for students, driving the direction of the school from a pupil base, chairing a school council} \\
                                    \text{Head of Events, LCR} &- \text{2012 to 2013} &&- \text{Responsibilities included coming up with original and creative events for the radio station and continuing to promote and market the station} \\
                                    \text{Head of Quality Control, LCR} &- \text{2013 to Present} &&- \text{Responsibilities include working with presenters to push the station forward and working to build a unified station with high quality shows and a full schedule}
                            \end{alignat*}

答案1

如前所述,文本表格材料应放入tabular环境中。在那里,您可以指定列类型,其中一些类型带有参数。在下面的 MWE 中,我使用了p将其内容放在“段落框”中的列,即将表格单元格视为对齐文本。这些列的宽度在说明符后的花括号中给出p。您可能想要尝试这些设置。

虽然排版质量表格是一门艺术(不仅在 LaTeX 中),但基础知识可以在lshort.pdf

\documentclass[margin]{res}
\usepackage{tabularx}

\begin{document}
\section{Experience}
\begin{tabular}{p{1.5in}p{0.95in}p{2.25in}}
  Maintenence Worker
    & Summers 2010 and 2011
    & Responsibilities included ensuring the upkeep of the grounds, being on-call to answer immediate problems, time management and working to a strict deadline \\
  Holt Hall Media Rep
    & November 2011 to Present
    & Responsibilities included building a website for the Hall to advertise to new students, regular photography, regular videography, creativity and drive to improve the hall of residence \\
  Head of School
    & Saint Felix School
    & Responsibilities included regular meetings with the headmaster to continue to provide ongoing support for students, driving the direction of the school from a pupil base, chairing a school council \\
  Head of Events, LCR 
    & 2012 to 2013
    & Responsibilities included coming up with original and creative events for the radio station and continuing to promote and market the station \\
  Head of Quality Control, LCR 
    & 2013 to Present
    & Responsibilities include working with presenters to push the station forward and working to build a unified station with high quality shows and a full schedule
\end{tabular}
\end{document}

相关内容