我有以下代码:
\documentclass[11pt, oneside]{Thesis}
\usepackage{geometry}
\usepackage{vwcol}
\begin{document}
\newgeometry{left=3cm, right=4cm, top=0.1cm, bottom=0.1cm}
\footnotesize
\thispagestyle{empty}
\null\vfil
\begin{vwcol}[widths={0.65,0.35},
sep=.6cm, justify=flush,rule=1pt,indent=1em]
\textbf{Authors:} Bob Marley\\
\\
\textbf{Title:} Simulation and Analysis of Relaxing using Object Oriented Programming.\\
\\
\textbf{Department:} Jamaica\\
\\
\textbf{Summary(max. 2000 characters):}
\vspace{200mm}\\
\textbf{Uni M-0064}\\
\\
\textbf{March 2015}
\vspace{15mm}\\
\textbf{Project period:}\\
\\
\\
\textbf{ECTS:}\\
30
\vspace{10mm}\\
\textbf{Education:}\\
Master of Science
\vspace{5mm}\\
\textbf{Field:}\\
Theory
\vspace{5mm}\\
\textbf{Supervisors:}\\
Bob Dylan
\vspace{4mm}\\
\textbf{Remarks:}\\
This report is submitted as partial fulfillment of the requirements for graduation in the above education at the Technical University of Jamaica
\vspace{1mm}\\
\textbf{Contract no.:}\\
\vspace{5mm}\\
\textbf{Project no.:}\\
\vspace{5mm}\\
\textbf{Sponsorship:}\\
\vspace{1mm}\\
\textbf{Front page:}\\
\vspace{1mm}\\
\textbf{Pages:}\\
\textbf{Tables:}\\
\textbf{References:}\\
\\
\\
\\
\\
\\
\\
\textbf{Technical University of Jamaica}\\
Department of Computer science\\
Freder 399\\
Building 118\\
4200 Neverland\\
Jamaica\\
Telephone +2323232323\\
\\
[email protected]\\
www.lol.uni.us
\end{vwcol}
\restoregeometry
\end{document}
产生以下结果(没有红色框):
可以看到文本超出了纸张范围。为什么会发生这种情况?找不到解决办法。提前致谢。
答案1
这是使用tabularx
\documentclass{article}
\usepackage[showframe]{geometry} %% showframe just for demo, remove
\usepackage{tabularx}
\begin{document}
\newgeometry{left=3cm, right=4cm, top=0.1cm, bottom=0.1cm}
\footnotesize
\thispagestyle{empty}
\vspace*{\fill}
\noindent
\begin{tabularx}{\textwidth}{@{}p{0.65\textwidth}!{\vrule width1pt}X@{}}
\textbf{Authors:} Bob Marley
&\textbf{Uni M-0064}\\[\baselineskip]
\textbf{Title:} Simulation and Analysis of Relaxing using Object Oriented Programming.
& \textbf{March 2015}\\[15mm]
\textbf{Department:} Jamaica & \\
\textbf{Summary(max. 2000 characters):}
& \textbf{Project period:}\\[1cm]
& \textbf{ECTS:}\\
& 30\\[10mm]\\
& \textbf{Education:}\\
& Master of Science\\[5mm]\\
& \textbf{Field:}\\
& Theory\\[5mm]
& \textbf{Supervisors:}\\
& Bob Dylan \\[4mm]
& \textbf{Remarks:}\\
& This report is submitted as partial fulfillment of the requirements for graduation in the above education at the Technical University of Jamaica\\[1mm]
&\textbf{Contract no.:}\\[5mm]
& \textbf{Project no.:}\\[5mm]
& \textbf{Sponsorship:}\\[1mm]
& \textbf{Front page:}\\[1mm]
& \textbf{Pages:}\\
& \textbf{Tables:}\\
&\textbf{References:}\\
&\\
&\\
&\\
&\\
&\\
&\\
&\textbf{Technical University of Jamaica}\\
& Department of Computer science\\
& Freder 399\\
& Building 118\\
& 4200 Neverland\\
& Jamaica\\
& Telephone +2323232323\\
& \\
& [email protected]\\
& www.lol.uni.us
\end{tabularx}
\vfill
\end{document}