LaTeX 表格句子不会自动转到下一行,且字体大小与文档的其余部分不一样

LaTeX 表格句子不会自动转到下一行,且字体大小与文档的其余部分不一样

我一直试图使用乳胶来制作一些数据的表格,但每次我输入一个大句子时,它都不会自动转到下一行,而是将表格扩展到与句子一样宽,此外,表格中的字体大小与我的文档的其余部分不一样。

这是我的 LaTeX 表格代码:

    \begin{table}[]
\centering
\caption{Input parameters for the rational method formula, Equation \ref{discharge}.}
\label{imput}
\begin{adjustbox}{width=1\textwidth}
\begin{tabular}{|l|l|l}
\cline{1-2}
\textbf{Input Parameters} & \textbf{Description}  \\ \cline{1-2}
Coefficient of runoff & The coefficient of runoff accounts for the hydraulic behavior of the runoff as it flows over different types of surfaces in the drainage area. The coefficient for different surfaces can be obtained from Table \ref{c}   \\ \cline{1-2}
Rainfall Intensity & This parameter represents the amount of rainfall per a specified time. This can be obtained from rainfall intensity vs duration curves. However, In South Africa the rainfall intensity can be obtained from the software discussed in Topic [REF A CHAPTER]   \\ \cline{1-2}
\multirow{3}{*}{Time of Concentration} & This parameter represents the amount of time it would take the runoff from any point to get to a drainage outlet. Moreover, this parameter can go further in-detail as to consider the time of surface flow and time of flow in the drainage structure.  \\ \cline{2-2}
& The key factors that can affect this system is that the slope of the land and characteristics of the surface that the runoff will be flowing over.  \\ \cline{2-2}
& It is recommended that Equation \ref{tcs} should be used for the estimation of surface flow time. Moreover, Equation \ref{tcd} can be used to obtain the drainage flow time. \\ \cline{1-2}
\end{tabular}
\end{adjustbox}
\end{table}

这就是我的桌子现在的样子

答案1

看起来你只需要两列。下面是带有 的代码tabularx,布局略有不同(没有\clines,用垂直间距代替):

\documentclass{article}
\usepackage{geometry} 
\usepackage{tabularx, ragged2e, caption, makecell}

\begin{document}

\begin{table}[]
    \centering\setcellgapes{3pt}\makegapedcells
    \caption{Input parameters for the rational method formula, Equation \ref{discharge}.}
    \label{imput}
    \begin{tabularx}{\linewidth}{| >{\hsize=0.5\hsize\RaggedRight}X| >{\hsize=1.5\hsize\RaggedRight\arraybackslash}X|}
        \hline
        \textbf{Input Parameters} & \textbf{Description} \\ \cline{1-2}
        Coefficient of runoff & The coefficient of runoff accounts for the hydraulic behavior of the runoff as it flows over different types of surfaces in the drainage area. The coefficient for different surfaces can be obtained from Table \ref{c} \\ \cline{1-2}
        Rainfall Intensity & This parameter represents the amount of rainfall per a specified time. This can be obtained from rainfall intensity vs duration curves. However, In South Africa the rainfall intensity can be obtained from the software discussed in Topic [REF A CHAPTER] \\ 
        \hline
        Time of Concentration & This parameter represents the amount of time it would take the runoff from any point to get to a drainage outlet. Moreover, this parameter can go further in-detail as to consider the time of surface flow and time of flow in the drainage structure. \\[2ex]
        & The key factors that can affect this system is that the slope of the land and characteristics of the surface that the runoff will be flowing over. \\[2ex]
        & It is recommended that Equation \ref{tcs} should be used for the estimation of surface flow time. Moreover, Equation \ref{tcd} can be used to obtain the drainage flow time. \\ 
        \hline
    \end{tabularx}
\end{table}

\end{document} 

在此处输入图片描述

相关内容