Graphics, Figures & Tables ⇒ breaks in tabularx
breaks in tabularx
thanks
----------------------
\documentclass[12pt,a4paper,openright]{book}
\usepackage[includeheadfoot,margin=3cm]{geometry}
\usepackage{booktabs,caption, float,tabularx}
\begin{document}
\pagestyle{headings}
\begin{table}[!ht]
\begin{tabularx}{\linewidth}{p{1.5cm}p{12cm}}
1stcol&2ndcol\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
name & this is a very long first row this is a very long first row this is a very long first row. this is a very long first row this is a very long first row this is a very long first row\\\addlinespace
\bottomrule
\end{tabularx}
\caption{my caption.}
\end{table}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
breaks in tabularx
I'm not sure if you mean a page break inside a table. This could be done with ltablex.
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: breaks in tabularx
http://www.vision.ime.usp.br/~jmena/mis ... _latex.pdf
yes, when the table is long to be fitted in one page, I want that it be splitted automatically over different pages.
I added ltablex but didn't change any thing. how to use any specific feature since no documentation is available?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
breaks in tabularx
Code: Select all
texdoc longtable
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: breaks in tabularx
\begin{longtable}
{\small
....
}
\end{longtable}
doesn't work
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
breaks in tabularx
Code: Select all
\small
\begin{longtable}
% table contents
\end{longtable}
\normalsize
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10