General ⇒ How to eliminate white space when inserting table
How to eliminate white space when inserting table
I have a brief *presumably trivial* question regarding the \tabular and/or \sidewaystable function. Whenever I insert a table (that captures an entire page) in my text, Latex adds an unnecessary blank line between my paragraphs. So my question is, how do I get rid of this line? Since I don't want to have a blank line in-between the paragraphs, given that the first word of the upcoming paragraph is indented anyway.
For instance, if my code looks like...
bla, bla, bla, bla.
\input{table_XYC}
blo, blo, blo.
whereby bla, bla, bla refers to paragraph 1, blo, blo, blo refers to paragraph 2, and the table is written in another tex-document, how do I make sure that it will eventually look like:
bla, bla, bla.
blo, blo, blo...
with the table on the page to follow.
A quick response is highly appreciated. Thanks in advance.
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
How to eliminate white space when inserting table
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to eliminate white space when inserting table
LATEX code:
\documentclass[a4paper, twoside,12pt]{article}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{float}
\usepackage{booktabs}
\begin{document}
Bla bla bla
%BEGIN TABLE ENVIRONMENT
\begin{center}
\begin{sidewaystable}[h b t p]
\leavevmode
\caption{XYZ}
\label{XYZ}
\renewcommand{\baselinestretch}{1.1}
\renewcommand{\arraystretch}{1.1}
\resizebox{21.7cm}{!} {
\begin{tabular}{ l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm} l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm} l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm}}
\toprule
& & & & & & & & & & & & & & & & & \\
\bottomrule
\end{tabular}
}
\end{sidewaystable}
\end{center}
\renewcommand{\baselinestretch}{1.5}
%END TABLE ENVIRONMENT
Blo blo blo
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to eliminate white space when inserting table
Code: Select all
\documentclass[a4paper, twoside,12pt]{article}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{float}
\usepackage{booktabs}
\begin{document}
Bla bla bla
% BEGIN TABLE ENVIRONMENT
\begin{sidewaystable}
\centering
\leavevmode
\caption{Dummy table}\label{tab:dummy}
\renewcommand{\baselinestretch}{1.1}
\renewcommand{\arraystretch}{1.1}
\resizebox{21.7cm}{!}{%
\begin{tabular}{ l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm} l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm} l p{1.1cm} p{1.1cm} p{1.1cm} p{1.1cm} p{1.3cm}} \toprule
& & & & & & & & & & & & & & & & & \\ \bottomrule
\end{tabular}
}
\end{sidewaystable}
\renewcommand{\baselinestretch}{1.5}
% END TABLE ENVIRONMENT
Blo blo blo
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10