LaTeX forum ⇒ Page Layout ⇒ Figure Placement in Flow Frames Topic is solved

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

Figure Placement in Flow Frames

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:
1. \documentclass{article}
2. \usepackage[margin=.5in]{geometry}
3. \geometry{letterpaper}
4. \usepackage{graphicx}
5. \usepackage{flowfram}
6.
7. \newflowframe*{4.5in}{4.5in}{3in}{5in}
8. \newflowframe*{1.5in}{9.5in}{0in}{0in}
9. \newflowframe*{1.5in}{9.5in}{1.5in}{0in}
10. \newflowframe*{1.5in}{5in}{3in}{0in}
11. \newflowframe*{1.5in}{5in}{4.5in}{0in}
12. \newflowframe*{1.5in}{5in}{6in}{0in}
13.
14. \begin{document}
15. \setlength{\flowframesep}{0pt}
16.
17. \begin{figure}
18. \centering
19. \includegraphics[width=4.45in, height=4.45in]{crossword_grid_cropped.pdf}
20. \end{figure}
21.
22. Here is the text that I want to appear in the frame in the upper left hand corner, which is the second frame defined.
23.
24. \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.

Tags:

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am
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.

1. \documentclass{article}
2. \usepackage[margin=.5in]{geometry}
3. \geometry{letterpaper}
4. \usepackage[demo]{graphicx}
5. \usepackage{flowfram}
6.
7. \newflowframe*{4.5in}{4.5in}{3in}{5in}
8. \newflowframe*{1.5in}{9.5in}{0in}{0in}
9. \newflowframe*{1.5in}{9.5in}{1.5in}{0in}
10. \newflowframe*{1.5in}{5in}{3in}{0in}
11. \newflowframe*{1.5in}{5in}{4.5in}{0in}
12. \newflowframe*{1.5in}{5in}{6in}{0in}
13.
14. \begin{document}
15. \setlength{\flowframesep}{0pt}
16.
17. \begin{staticfigure}
18. \centering
19. \includegraphics[width=4.45in, height=4.45in]{crossword_grid_cropped.pdf}
20. \end{staticfigure}
21.
22. \framebreak
23.
24. Here is the text that I want to appear in the frame in the upper
25. left hand corner, which is the second frame defined.
26.
27. \end{document}

In fact, since you don't have a caption, you can dispense with the environment altogether.

Regards
Nicola Talbot