简体   繁体   English

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

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

I am having problem making table 11 to be under table 10 within laTex. 我在将表11置于laTex中的表10下时遇到问题。 For my tables I am been using [!] and [h] to make my tables display under each other but now once I got to table 11 it will not go under table 10 对于我的表,我一直在使用[!][h]使我的表在彼此下显示,但是现在进入表11后,它就不会进入表10了。

I have tried to do a few method which was using float package and place in packages but it seem that no changes are being done. 我试图做一些使用float包并将其放置在包中的方法,但是似乎没有任何变化。

I've also had this problem before because at first I was using [h] and all the tables were going under each other but then it stopped working so I used [!] but now that is not working 我之前也遇到过这个问题,因为起初我使用[h]并且所有表都在互相作用,但是后来它停止工作,所以我使用[!]但现在不起作用

So this is table 10 这是表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}

table 11 is the same but it won't go under table 10 instead laTex places it somewhere random 表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}

Is there any way I could properly place table 11 to be directly under table 10 instead of placing it somewhere random like the image is displaying below. 有什么办法可以将表11正确地放置在表10的正下方,而不是将其放置在图像下面显示的随机位置。 Thank you in advance 先感谢您

在此处输入图片说明

I would suggest another approach, if the tables should directly follow each other, place them in the same floating environment: 我建议另一种方法,如果这些表应该直接相互遵循,请将它们放在相同的浮动环境中:

\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