如何让我的表格跨越两页?

如何让我的表格跨越两页?

我看到人们使用 longtable 环境,但是当我尝试使用它时,我的表中仍然有“begin tabular”,并且它不起作用。

这是我的代码:

\begin{table}[h!]
\centering
\begin{tabular}{|l|l|l|}
\hline
\rowcolor[HTML]{D7D7D7} 
\multicolumn{1}{|c|}{\cellcolor[HTML]{D7D7D7}\textit{\textbf{\begin{tabular}[c]{@{}c@{}}Type of Limitation \& \\ Weaknesses\end{tabular}}}} & \multicolumn{1}{c|}{\cellcolor[HTML]{D7D7D7}\textit{\textbf{Impact on Data}}}                                                                                                                                                                                                                                                                                                           & \multicolumn{1}{c|}{\cellcolor[HTML]{D7D7D7}\textit{\textbf{Improvements}}}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         \\ \hline
\textit{\begin{tabular}[c]{@{}l@{}}Systematic:\\ Limited Temperature\\ Range\end{tabular}}                                                  & \begin{tabular}[c]{@{}l@{}}The narrow temperature range may\\ limit the generalizability of the\\ findings to a wider range of \\ temperature conditions. The observed \\ relationship between temperature and\\ Vitamin C concentration may not\\ accurately reflect the behavior at \\ extreme temperatures or within \\ intermediate temperature ranges.\end{tabular}                & \begin{tabular}[c]{@{}l@{}}To address this limitation, future \\ experiments can include a broader\\  spectrum of temperatures, including\\ extreme values and additional \\ intermediate points.\end{tabular}                                                                                                                                                                                                                                                                                                                                                                                                                                      \\ \hline
\textit{\begin{tabular}[c]{@{}l@{}}Systematic:\\ Sensitivity to \\ Environmental \\ Factors\end{tabular}}                                   & \begin{tabular}[c]{@{}l@{}}Uncontrolled environmental factors, \\ such as light exposure, air oxidation, \\ and pH fluctuations, can introduce \\ additional sources of variation and \\ impact the observed relationship \\ between temperature and Vitamin C\\  concentration.\end{tabular}                                                                                           & \begin{tabular}[c]{@{}l@{}}To address this limitation, future \\ experiments should consider\\ controlling and monitoring \\ environmental factors. This can be\\ achieved by conducting the \\ experiment in a controlled \\ laboratory environment, using \\ light-blocking containers, employing\\ inert gas purging techniques to \\ minimize oxidation,and implementing \\ pH adjustment and monitoring to \\ maintainconsistent acidity levels \\ throughout the experiment. By \\ controlling these factors, the \\ experiment can isolate the specific \\ effects of temperature on Vitamin C\\ concentration more accurately.\end{tabular} \\ \hline
\textit{\begin{tabular}[c]{@{}l@{}}Systematic:\\ Time Dependency\end{tabular}}                                                              & \begin{tabular}[c]{@{}l@{}}The experiment may not have \\ accounted for the potential \\ time-dependent degradation of \\ Vitamin C in lemon juice. It is\\ possible that the observed \\ changes in concentration were\\ influenced by the duration of \\ exposure to different temperatures\\ rather than temperature alone.\end{tabular}                                             & \begin{tabular}[c]{@{}l@{}}To overcome this limitation, future\\ experiments can incorporate a \\ time-dependent analysis. By exposing\\ the lemon juice samples to different \\ temperatures for specific durations and\\ tracking the changes in Vitamin C \\ concentration over time, a more \\ comprehensive understanding of the\\ relationship between temperature \\ and time can be achieved.\end{tabular}                                                                                                                                                                                                                                  \\ \hline
\textit{\begin{tabular}[c]{@{}l@{}}Random:\\ Error in Titration \\ Measurements\end{tabular}}                                               & \begin{tabular}[c]{@{}l@{}}Random errors in the titration \\ measurements, such as slight \\ variations in the volume of \\ titrant added or imprecise endpoint \\ determination, can introduce \\ random variation in the recorded\\ Vitamin C concentrations.\\  Additionally, inspection when taking\\ measurements from conical flasks \\ can result in further error.\end{tabular} & \begin{tabular}[c]{@{}l@{}}To minimize random errors in \\ titration measurements, careful \\ attention should be paid to technique \\ and precision. Using proper pipetting \\ techniques, ensuring accurate volume \\ measurements, and conducting multiple \\ trials can help reduce the impact of \\ random errors and improve the reliability \\ of the results.\end{tabular}                                                                                                                                                                                                                                                                  \\ \hline
\end{tabular}
\end{table}

在此处输入图片描述

在图中,我正尝试将表格放到上面的空白处。

答案1

一个tabular环境不能跨越多个页面。我建议你使用长桌环境。我还建议您通过删除所有垂直线和大多数水平线,让表格看起来更加开放。并且,切换到p允许自动换行的列类型(例如),并删除tabular包装器和硬换行符。

在此处输入图片描述

\documentclass{article} % or some other suitable document class
\usepackage[a4paper,margin=1in]{geometry} % set page parameters as needed
\usepackage[english]{babel}
\usepackage{xcolor,colortbl,booktabs}
\usepackage{longtable,array,ragged2e}
\newcolumntype{L}[1]{>{\RaggedRight}p{#1\textwidth}}

\begin{document}

\begin{longtable}{ L{.23} L{.31} L{.35} }

\rowcolor[HTML]{D7D7D7} 
\textit{\textbf{Type of Limitation$^{\strut}$ \& Weaknesses}} 
& \textit{\textbf{Impact on Data}} 
& \textit{\textbf{Improvements}} \\ 
\addlinespace
\endhead

\multicolumn{3}{r@{}}{\footnotesize continued on next page}\\
\endfoot

\bottomrule
\endlastfoot

\textit{Systematic: Limited Temperature Range}
& The narrow temperature range may limit the generalizability of the findings to a wider range of temperature conditions. The observed relationship between temperature and Vitamin~C concentration may not accurately reflect the behavior at extreme temperatures or within intermediate temperature ranges.    
& To address this limitation, future experiments can include a broader spectrum of temperatures, including extreme values and additional intermediate points.                                                                                                          
\\ \addlinespace

\textit{Systematic: Sensitivity to Environmental Factors}         
& Uncontrolled environmental factors, such as light exposure, air oxidation, and pH fluctuations, can introduce additional sources of variation and impact the observed relationship between temperature and Vitamin~C concentration.                       
& To address this limitation, future experiments should consider controlling and monitoring environmental factors. This can be achieved by conducting the experiment in a controlled laboratory environment, using light-blocking containers, employing inert gas purging techniques to minimize oxidation, and implementing pH adjustment and monitoring to maintain consistent acidity levels throughout the experiment. By controlling these factors, the experiment can isolate the specific effects of temperature on Vitamin~C concentration more accurately. 
\\ 
\addlinespace

\textit{Systematic: Time Dependency}
& The experiment may not have accounted for the potential time-dependent degradation of Vitamin~C in lemon juice. It is possible that the observed changes in concentration were influenced by the duration of exposure to different temperatures rather than temperature alone.            
& To overcome this limitation, future experiments can incorporate a time-dependent analysis. By exposing the lemon juice samples to different temperatures for specific durations and tracking the changes in Vitamin~C concentration over time, a more comprehensive understanding of the relationship between temperature and time can be achieved.                                                         
\\ \addlinespace

\textit{Random: Error in Titration Measurements}
& Random errors in the titration measurements, such as slight variations in the volume of titrant added or imprecise endpoint determination, can introduce random variation in the recorded Vitamin~C concentrations. Additionally, inspection when taking measurements from conical flasks can result in further error. 
& To minimize random errors in titration measurements, careful attention should be paid to technique and precision. Using proper pipetting techniques, ensuring accurate volume measurements, and conducting multiple trials can help reduce the impact of random errors and improve the reliability of the results.                                                                 
\\

\end{longtable}

\end{document}

相关内容