Questions tagged [afterpage]

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

afterpage implements \afterpage{<stuff>} that causes the commands specified in its argument to be expanded after the current page is output. For example, LaTeX's float positioning mechanism sometimes gets overloaded and all floating figures and tables drift to the end of the document. One may flush out all the unprocessed floats by issuing a \clearpage command, but this has the effect of making the current page end prematurely. Now you can issue \afterpage{\clearpage} and the current page will be filled up with text as usual, but then the \clearpage command will flush out all the floats before the next text page begins.

94 questions
2
votes
0 answers

How to solve error - Illegal parameter number in definition of \AP@

I'm new to Latex and struggling to properly format a specific cover for my article. I have the following code that fulfils what is expected from it and even compiles. However, the "Illegal parameter number in definition of \AP@" error appears when…
1
vote
3 answers

inserting an image after every page

I'd like to automatically insert an image on all even pages of a document, keeping the rest of the text flow unaltered. I know I can do this using something like pdftk after compilation, but is there some way of doing it as part of the latex…
JPi
  • 13,595
0
votes
1 answer

Afterpage and large figures

I am having trouble using \afterpage in combination with some figures+captions that are too adjusted or directly exceed the document's margins (I assume that this is the cause of \afterpage not behaving as usual). I don't mind these figures…
iss
  • 25
0
votes
0 answers

insert empty page after chapter

I'm sorry, but I'm having trouble inserting a latex code example to explain this problem. I'm writing a book on environmental hydraulics for university (nothing commercial). I have a problem inserting a blank page between chapters. I noticed that if…
Antonio
  • 543