The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [afterpage]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
343 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 ...
1
vote
0answers
63 views

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 ...
1
vote
0answers
208 views

Geometry: strange behaviour after \restoregeometry in afterpage environment (and longtable)

I have some strange problem tying place a "fake float" with large tables. Here is a MWE: \documentclass[twoside, a4paper]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
92 views

Use of \afterpage package causes equation to be inserted into following subequations

I have a very long equation, which cannot be split apart, which I place on a landscape page on its own. However, when I compile the document, this equation now seems to have been placed inside the ...
1
vote
1answer
96 views

Extra pages generated by afterpage

I am creating a set of solutions to a test and need to have a header table that indicates the question number, year of test, etc. I have created the code below that uses tikz to create the table and ...
1
vote
1answer
274 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 ...
0
votes
1answer
112 views

How to change font color for only the current page?

As mentioned by the title, I need to change font color for only the current page. After searching the internet, the afterpage package seems to be a good choice, as well as \colorlet{saved}{.} from the ...
0
votes
2answers
168 views

Appearing order in a landscape figure and normal figure

I'm working in a text with a lot of figures and some of them are landscape oriented. In the text I created a landscape figure, followed by some paragraphs and then a regular figure. I expected that ...
0
votes
1answer
490 views

\restoregeometry from inside afterpage

I want to create a twoside article as a booklet where the first page is centered, and the rest is not. Using \newgeometry and restoregeometry within the afterpage macro doesn't work for some reason. ...
0
votes
1answer
24 views

Putting table and image in same landscape page

I am trying to put a long table and three images in the same landscape page. Here is a MWE: \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{tabularx} \usepackage{booktabs} \...
0
votes
1answer
337 views

Remove header/footer on page with large figure

I have a question that is similar to this one, though the solutions proposed there do not work for me. I want to insert a large figure in a document that has headers (section titles) and footers (page ...
0
votes
1answer
48 views

How to remove page number for the page includes “algorithm pseudo-code”?

I want to remove page number of the page of algorithm pseudo-code. I used afterpage as explained in this answer as follows: \afterpage{% \begin{algorithm} \begin{algorithmic}[1] ...
0
votes
2answers
111 views

How to get landscape float with correct numbering?

I am setting a figure in landscape and then two other figures in normal mode. However, the landscape figure goes between the normal figures and the numbering gets messed up, including in the table of ...
0
votes
1answer
98 views

Set page color for double-double float

I have a custom command, comprising two instances of \@dblfloat. I'd like to change the page color on pages where this occurs. I can do this for a single instance of \@dblfloat, but not more. In the ...
0
votes
1answer
176 views

Shift landscape environment to the previous page

A typical solution while using the landscape environment provided by the pdflscape package is to wrap the landscape into an \afterpage{} environment to prevent clearing the page between the part to be ...
0
votes
1answer
41 views

text after aftertable environment not filling white space prior - rotated full page tables

I'm writing a document with some full page tables that need to be rotated. This is fine, but float behaviour is not working like I would expect - I have some text 1, an afterpage environ with full ...
0
votes
2answers
926 views

Float(s) lost: Problem (Possible) from afterpage + double-column

I am working on a package which allows for figures with many subfigures which can break over multiple pages. So far, my figureSeries package is working in most scenarios, except that I sometimes get "...
0
votes
0answers
21 views

Repeating text in the beginning of certain pages

With the following code, the text This is an experiment! is not placed in the indicated pages: 1, 2 and 4. Could somebody please help me? \documentclass[12pt]{article} \usepackage{lipsum} \...
0
votes
0answers
39 views

How to rotate a page with a rotated figure with “sidewaysfigure”?

I'm dealing with rotated figures on my document. I have 2 alternatives: sidewaysfigurefrom the rotating package landscape environment from the pdflscape package I prefer the sidewaysfigure because ...
0
votes
0answers
122 views

There is an alternative for \afterpage?

I'm experiencing problems with my floats. Reading about it I found that \afterpage could be the responsible for that situation (answer that I read). I use \afterpage for long horizontal tables spread ...
0
votes
2answers
193 views

Box / Object moves in research article template depending on introduction length. Why?

Dear fellow LaTeX users, I am new to the field and had to start quite deep with a relatively complex document template (PNAS research article template). The respective files can be obtained at: http:/...
0
votes
1answer
80 views

Sideways Figure alignment and \afterpage

I am trying to place a full landscape page size sideways figure which should come before another tiny figure within the same section. I have used following code and I could get the order and style ...
0
votes
0answers
391 views

`strip` Environment Does Not Work in Empty Document / Interaction with `\afterpage`

I have a question about the interaction of the packages afterpage and cuted in two-column mode near the document end - or about cuted's strip environment in otherwise empty documents for that matter. ...