繁体   English   中英

我如何在LaTeX中将桌子放置在彼此下方

[英]How do I position my table to be under each other in LaTeX

我在将表11置于laTex中的表10下时遇到问题。 对于我的表,我一直在使用[!][h]使我的表在彼此下显示,但是现在进入表11后,它就不会进入表10了。

我试图做一些使用float包并将其放置在包中的方法,但是似乎没有任何变化。

我之前也遇到过这个问题,因为起初我使用[h]并且所有表都在互相作用,但是后来它停止工作,所以我使用[!]但现在不起作用

这是表10

\begin{table}[!]
\begin{tabular}{|l|l|}
\hline
Test\#        & 10                                                                                                        
\\ \hline
Content       & \begin{tabular}[c]{@{}l@{}}Testing emails to be registered 
when signing up\\ to be a lender.\end{tabular} \\ \hline
Input         & Signing up and lending out a product.                                                                     
\\ \hline
Pass Criteria & Signing up with the ability to lend out products.                                                         
\\ \hline
\end{tabular}
\end{table}

表11相同,但不会进入表10之下,而是laTex将其放置在随机的位置

\begin{table}[!]
\begin{tabular}{|l|l|}
\hline
Test\#        & 11                                                                                                                              
\\ \hline
Content       & \begin{tabular}[c]{@{}l@{}}Testing the billing information 
input to see \\ if it works.\end{tabular}                            \\ 
\hline
Input         & \begin{tabular}[c]{@{}l@{}}The user rents out a product 
and check if\\ billing information is appearing correctly.\end{tabular} \\ 
\hline
Pass Criteria & \begin{tabular}[c]{@{}l@{}}Billing information appears 
when checkout is\\ completed.\end{tabular}                               
\\ \hline
\end{tabular}
\end{table}

有什么办法可以将表11正确地放置在表10的正下方,而不是将其放置在图像下面显示的随机位置。 先感谢您

在此处输入图片说明

我建议另一种方法,如果这些表应该直接相互遵循,请将它们放在相同的浮动环境中:

\documentclass{article}
\usepackage{float}

\begin{document}

\begin{table}[htbp]
\begin{tabular}{|l|l|}
\hline
Test\#        & 10                                                                                                        
\\ \hline
Content       & \begin{tabular}[c]{@{}l@{}}Testing emails to be registered 
when signing up\\ to be a lender.\end{tabular} \\ \hline
Input         & Signing up and lending out a product.                                                                     
\\ \hline
Pass Criteria & Signing up with the ability to lend out products.                                                         
\\ \hline
\end{tabular}

\bigskip

\begin{tabular}{|l|l|}
\hline
Test\#        & 11                                                                                                                              
\\ \hline
Content       & \begin{tabular}[c]{@{}l@{}}Testing the billing information 
input to see \\ if it works.\end{tabular}                            \\ 
\hline
Input         & \begin{tabular}[c]{@{}l@{}}The user rents out a product 
and check if\\ billing information is appearing correctly.\end{tabular} \\ 
\hline
Pass Criteria & \begin{tabular}[c]{@{}l@{}}Billing information appears 
when checkout is\\ completed.\end{tabular}                               
\\ \hline
\end{tabular}
\end{table}
\end{document}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM