Tagged Questions

{afterpage} is a package that provides a means of running commands immediately after the current page is output.

learn more… | top users | synonyms

2
votes
1answer
49 views

Longtable breaks afterpage

My problem is that I want to have a certain footer on the first, or the last, page. The solution I've tried with is by using fancyhdr together with afterpage. Here is a working example, without ...
6
votes
1answer
48 views

\label is Undefined when used in \afterpage?

I am trying to force a figure and an image to show up on the same page back to back. I read the solution of using the \afterpage which works great. Except now the \label is undefined and I cannot ...
1
vote
1answer
67 views

Framed environment covers caption of figure in afterpage

I'm using packages framed to create my own quote environment with a nice frame. However, when using the package afterpage to shift a figure to the next page and the first thing on the next page is a ...
3
votes
1answer
110 views

Order of footnotes with packages afterpage and footnote

I need to have footnotes in captions of figures and therefore use the afterpage package to keep the footnotes and the figure on the same page (also using package footnote for footnotes in figures). I ...
1
vote
0answers
51 views

A figure-like environment that can contain many subfigures and break over pages: How to align double-column starts after the thing properly?

I have a problem similar to post 11059, i.e., I need a figure-like environment that can contain an arbitrary number of sub-figures. These may take so much space that the figure may span over multiple ...
5
votes
0answers
42 views

How do I manually split a paragraph without \afterpage?

So I wrote a LaTeX package that would give me full-page floats: http://tex.stackexchange.com/a/84312/13450 Unfortunately, it introduces hard page breaks. \documentclass[a5paper]{memoir} ...
2
votes
1answer
50 views

why can't I get the A3 page where I want it (inside an A4 document) [duplicate]

I am using an A3 page within an A4 document. In the SSCCE example below, my plan was to get (in this order): "foo" on an A4 page "A3 stuff" on an A3 page "bar" on an A4 page Instead, I get: ...
2
votes
2answers
242 views

Full page floating figure with TikZ overlay in twocolumn document?

I have a peculiar problem with my LaTeX document. I have a twocolumn document and would like to include a figure that is spread over an entire new page and contains a TikZ picture (where I can input a ...
1
vote
2answers
103 views

How do I insert double blank pages

I can insert one blank page successfully with \afterpage{\null\newpage} But I need two?
2
votes
0answers
74 views

\afterpage not called after page break

In this example \documentclass{article} \usepackage[a6paper,landscape,margin=1cm,bottom=2cm]{geometry} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{afterpage,refcount,lastpage} ...
2
votes
1answer
646 views

How can I solve “Float(s) lost” when using afterpage / minted packages?

I'm writing a document where I have a lot of long listings. I use the package minted to typeset the listings, which I always embed in a float. Since the listings are quite long, and LaTeX usually does ...
2
votes
0answers
42 views

Repeating top-level index entries on the next column (done right)

Yes, I want exactly the same thing as in this question. However, I'm trying to get rid of the following three issues with repeatindex/afterpage: afterpage causes loathsome small vertical space after ...
5
votes
1answer
214 views

afterpage clashes with restoregeometry from the geometry package

I'm writing my thesis and have used the geometry package to control the size of the text body so that it follows 'good' typesetting practices as described in the KOMA-script documentation. Many of ...
0
votes
1answer
89 views

Conditional spacing in ToC column headers

Sorry in advance for this being such a specific question, but I'm at my wits end with this problem. My university has odd formatting requirements for dissertations (I know, don't they all). In ...
6
votes
1answer
1k views

Floating longtable in Latex

I have a short table but I want to use the longtable environment for it because I have also some other long tables in my document and I want they have the same appearance. However, I do not know how ...
3
votes
1answer
404 views

Landscape figure float obscuring text

I am trying to insert a figure float in landscape orientation within an otherwise portrait-oriented document. The figure is inserting as it should, but for some reason it is obscuring a page of text ...
4
votes
0answers
1k views

Attempts to manually change \linewidth ignored by LaTeX [closed]

I was going to try to answer the question: How can I change the geometry of a page on the chapter header page only, and return to normal on the next page? It didn't seem like it should be too ...
4
votes
1answer
99 views

pst-abspos and afterpage not producing the effect I want: is there an aftereverypage?

I'm trying to create a document which looks like it's been printed on a ruled page. I know I can probably do this in tikZ, but I would like to be able to do this in pstricks. The option absolute for ...
7
votes
1answer
635 views

Page styles only work for \thispagestyle under afterpage

Using afterpage to set a page style after some page only works for \thispagestyle, but not for \pagestyle. Why is that? How can I make it work? \lipsum[1-20] produces 4 pages of text, Lorem Ipsum ...
2
votes
1answer
118 views

etoolbox patch lstlistings

This is a follow up question to empty page afterpage listings. I'm trying to work around a listings problem with etoolbox: \documentclass{scrartcl} \usepackage{listings} \usepackage{afterpage} ...
2
votes
1answer
229 views

empty page afterpage listings

I get an emptypage on multi page listings if I use listings with afterpage. \documentclass{scrartcl} \usepackage{listings} \usepackage{afterpage} \begin{document} \afterpage{% %some fancy stuff } ...