Graphics, Figures & TablesSetting large float and some text on a common page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bers
Posts: 6
Joined: Mon Feb 08, 2010 12:33 am

Setting large float and some text on a common page

Post by bers »

Hi,
this might be a newbie's question, but I probably only need a short guidance into the right direction. I want this to be on two pages in total, because I see that it would fit. How would I accomplish that? It always turns out to be on three pages, as soon as I use more than 0.65\textheight of height.

Thanks,
bers

Code: Select all

\documentclass{scrreprt}%
\usepackage{graphicx}%
\usepackage{lipsum}%
\begin{document}%
  \lipsum[1-6]%
  \begin{figure}%
    \includegraphics[width=5cm,height=0.7\textheight]{images/TODO}%
  \end{figure}%
\end{document}%
Edit: I found out that this works:

Code: Select all

\documentclass{scrreprt}%
\usepackage{graphicx}%
\usepackage{lipsum}%
\renewcommand{\topfraction}{0.9}
\begin{document}%
  \lipsum[1-6]%
  \begin{figure}[h]%
    \includegraphics[width=5cm,height=0.7\textheight]{images/TODO}%
  \end{figure}%
\end{document}%
Last edited by bers on Thu Sep 16, 2010 1:42 pm, edited 1 time 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.

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Setting large float and some text on a common page

Post by Montag »

Hello you could change
bers wrote:

Code: Select all

\documentclass{scrreprt}%
\usepackage{graphicx}%
\usepackage{lipsum}%
\begin{document}%
  \lipsum[1-6]%
  \begin{figure}%
    \includegraphics[width=5cm,height=0.7\textheight]{images/TODO}%
  \end{figure}%
\end{document}%
to

Code: Select all

\documentclass{scrreprt}%
\usepackage{graphicx}%
\usepackage{lipsum}%
\begin{document}%
  \lipsum[1-6]%
  \begin{center}%
    \includegraphics[width=5cm,height=0.7\textheight]{images/TODO}%
  \end{center}%
\end{document}%
Also, you need to give only one parameter for the image size, it gets scaled automatically.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply