Graphics, Figures & TablesForce to print table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Force to print table

Post by Wooldridge1 »

Hello,

Code: Select all

\begin{center}
\begin{table}[!h]
\begin{tabular}{p{1.7cm}p{0.5cm}p{12cm}lcr} 
A & = & abc, and \\
B & = & cde, \\
\end{tabular}
\end{table}
\end{center}
How can I force Texmaker to print the table?

Best!
Last edited by Stefan Kottwitz on Sat Oct 22, 2016 2:45 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Force to print table

Post by Stefan Kottwitz »

Simply remove \end{table} and \end{table}.

tabular is enough here. table is for floating tables with captions and numbering. This means, tables are positioned at a very good place for optimal page breaking, such as at the beginning of the next page while the text fills up the page to the bottom. If you don't want that, you don't need to use a table environment.

Stefan
LaTeX.org admin
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Re: Force to print table

Post by Wooldridge1 »

Okay, thanks, Stefan. :-)

And how can I create a table across multiple pages?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Force to print table

Post by Stefan Kottwitz »

You can use the longtable package.

Stefan
LaTeX.org admin
Wooldridge1
Posts: 20
Joined: Wed Oct 19, 2016 9:21 am

Re: Force to print table

Post by Wooldridge1 »

It works! :) Thank you very much! :-)
Post Reply