表格环境中的行超出边距

表格环境中的行超出边距

我遇到的主要问题是第二列被挤压,表格超出了现有的 1 英寸边距。有什么方法可以最好地解决此问题?我还需要表格尽可能紧凑和整洁,因为我的作业的页数限制为 5 页。

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{booktabs}
\usepackage{tabulary}
\usepackage{multirow}
\usepackage[margin=1in]{geometry}
\begin{document}
\noindent
\begin{tabulary}{\textwidth}{LCL}
\multicolumn{3}{c}{\textit{Something Something} Implementation Plan by Time Period} \\
\toprule
\multicolumn{2}{c}{Time Period and Length} & \multicolumn{1}{c}{Action Plan} \\
\cline{1-3}
\multirow{2}{*}{Short Run} & $1$ Day & The first day and something and something dummy text.... Now i'm going to keep on adding more text until I really really can't. Do you understand the words that are coming out of my mouth sir?\\
& $1$ Week & Begin  here and end there and theren begin here aaga.\\
\multirow{2}{*}{Medium Run} & $1$ Month & Then do this ya, do exactly taht sd;flkjas.\\
& $6$ Months & You think you can think dawg hun? hun? hun? \\
\multirow{1}{*}{Long Run} & $1$ Year & ;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj \\
\bottomrule
\end{tabulary}

\end{document}

答案1

您必须\noindent在 之前放置\begin{tabulary}{\textwidth}{LCL}。此外,您可以设置尺寸:

\tymin=.1\textwidth
\tymax=.7\textwidth

以便正确获取所有信息。有关详细信息,请参阅tabulary手册(texdoc tabularytexdoc.net

完整代码:

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{booktabs}
\usepackage{tabulary}
\usepackage{multirow}
\usepackage[margin=1in,showframe]{geometry}
\tymin=.1\textwidth
\tymax=.7\textwidth
\begin{document}
\noindent
\begin{tabulary}{\textwidth}{LCL}
\multicolumn{3}{c}{\textit{Something Something} Implementation Plan by Time Period} \\
\toprule
\multicolumn{2}{c}{Time Period and Length} & \multicolumn{1}{c}{Action Plan} \\
\hline
\multirow{2}{*}{\raisebox{-5ex}{Short Run}} & $1$ Day & The first day and something and something dummy text.... Now i'm going to keep on adding more text until I really really can't. Do you understand the words that are coming out of my mouth sir?\\
& $1$ Week & Begin  here and end there and theren begin here aaga.\\
\multirow{2}{*}{Medium Run} & $1$ Month & Then do this ya, do exactly taht sd;flkjas.\\
& $6$ Months & You think you can think dawg hun? hun? hun? \\
\multirow{1}{*}{Long Run} & $1$ Year & ;swelkj;swelkj;swelkj;swelkj;swelkj; swelkj;swelkj;swelkj;swelkj; swelkj;swelkj; swelkj;swelkj;swelkj;swelkj \\
\bottomrule
\end{tabulary}

\end{document}

在此处输入图片描述

另请注意

;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj;swelkj

需要一些空格,以便句子可以分成多行。此外,我曾经\multirow{2}{*}{\raisebox{-5ex}{Short Run}}调整过垂直位置。

相关内容