Page LayoutFigure Placement in Flow Frames

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Lady Jamcrackers
Posts: 3
Joined: Wed Aug 28, 2013 11:16 pm

Figure Placement in Flow Frames

Post by Lady Jamcrackers »

I am trying to put a figure in a flow frame using the flowfram package. I do not want to use a static figure (I know about staticfigure, but I tried that and it created a different problem). I would like my first flow frame to contain just my figure and nothing else. Here is a minimum working example:

Code: Select all

\documentclass{article}
\usepackage[margin=.5in]{geometry}
\geometry{letterpaper}
\usepackage{graphicx}
\usepackage{flowfram}

\newflowframe*{4.5in}{4.5in}{3in}{5in}
\newflowframe*{1.5in}{9.5in}{0in}{0in}
\newflowframe*{1.5in}{9.5in}{1.5in}{0in}
\newflowframe*{1.5in}{5in}{3in}{0in}
\newflowframe*{1.5in}{5in}{4.5in}{0in}
\newflowframe*{1.5in}{5in}{6in}{0in}

\begin{document}
  \setlength{\flowframesep}{0pt}

  \begin{figure}
    \centering
    \includegraphics[width=4.45in, height=4.45in]{crossword_grid_cropped.pdf}
  \end{figure}

Here is the text that I want to appear in the frame in the upper left hand corner, which is the second frame defined.

\end{document}
When I compile my document with just the figure, it appears in the correct frame. However, when I try to add text after the figure (which I intend to have flow to the next frame), the text appears in the first frame, and the figure gets displaced to a different frame (hard to tell which one since it doesn't fit properly in the other frames).
Last edited by Stefan Kottwitz on Thu Aug 29, 2013 12:08 am, 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.

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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Figure Placement in Flow Frames

Post by nlct »

Figures are floats, so they're governed by certain rules, such as the proportion of text per float to a page. (Each flow frame is a "page" from TeX's point of view.) What problem are you having with staticfigure? If you just want the figure in the first frame, with no text the following works fine for me.

Code: Select all

    \documentclass{article}
    \usepackage[margin=.5in]{geometry}
    \geometry{letterpaper}
    \usepackage[demo]{graphicx}
    \usepackage{flowfram}

    \newflowframe*{4.5in}{4.5in}{3in}{5in}
    \newflowframe*{1.5in}{9.5in}{0in}{0in}
    \newflowframe*{1.5in}{9.5in}{1.5in}{0in}
    \newflowframe*{1.5in}{5in}{3in}{0in}
    \newflowframe*{1.5in}{5in}{4.5in}{0in}
    \newflowframe*{1.5in}{5in}{6in}{0in}

    \begin{document}
      \setlength{\flowframesep}{0pt}

      \begin{staticfigure}
        \centering
        \includegraphics[width=4.45in, height=4.45in]{crossword_grid_cropped.pdf}
      \end{staticfigure}

    \framebreak

    Here is the text that I want to appear in the frame in the upper
left hand corner, which is the second frame defined.

    \end{document}
In fact, since you don't have a caption, you can dispense with the environment altogether.

Regards
Nicola Talbot
Lady Jamcrackers
Posts: 3
Joined: Wed Aug 28, 2013 11:16 pm

Re: Figure Placement in Flow Frames

Post by Lady Jamcrackers »

Thanks for the response. When I was using a staticfigure, I was defining it within a staticframe. The code you posted appears to post a staticfigure in a flowframe, which I did not realize was possible. When I used a staticframe, the graphic was shifted up and left about a quarter inch. Not sure why. Anyway thank you!
Post Reply