Text FormattingFill up blank Space on Pages with Lines

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jlatex
Posts: 4
Joined: Wed Aug 03, 2011 9:22 pm

Fill up blank Space on Pages with Lines

Post by jlatex »

I would like to fill up the white space on the page after text with lines without using \clearpage \pagebreak or \newpage so that my pictures are displayed properly.

Code: Select all

\documentclass{report}

\usepackage{graphicx}
\usepackage[labelfont=bf, font={bf,small}, aboveskip=2pt, singlelinecheck=false]{caption}
\usepackage[top = 1.25in, bottom = 1.25in, left = 1.25in, right = 1.25in]{geometry}
\usepackage{showframe}


\begin{document}
\chapter{Chapter 1}
\section{Section 1}
\subsection{Subsection 1}
Text goes here
%add spaces to finish page eg:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

\newcommand{\fig}[2]
{\begin{figure}[!ht]
\setlength\fboxsep{0pt}	%offset from edge of picture
\setlength\fboxrule{0.75pt}	%border size
\fbox{\includegraphics[width=5.99in,height=3.97in]{#1}}
\caption{#2}
\end{figure}}

\fig{fig1}{Figure 1}
\fig{fig2}{Figure 2}
\fig{fig3}{Figure 3}

\end{document}
The pictures also have to be exactly 5.99in x 3.97in and the margins have to be 1.25in.
Thanks.

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Fill up blank Space on Pages with Lines

Post by Stefan Kottwitz »

Hi,

you could insert \vspace*{\fill} to fill the remaining space on the page.

Stefan
LaTeX.org admin
jlatex
Posts: 4
Joined: Wed Aug 03, 2011 9:22 pm

Re: Fill up blank Space on Pages with Lines

Post by jlatex »

Adding that after my text just moves the picture to the bottom of the page but I want the picture to start on the next page.
Post Reply