Questions tagged [shipout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
447 views

atbegshi warnings printed as part of output

Consider the following example: \documentclass{article} \usepackage{lipsum,atbegshi} \usepackage[2-]{pagesel}% Ignore first page \begin{document} \lipsum[1-50] \end{document} The output includes a ...
5
votes
1answer
482 views

Why does \shipout start a new page?

The Tex Book (20th printing, 1991) describes the \shipout<box> primitive as follows (p. 279). After the <box> is formed — possibly by constructing it explicitly and changing modes ...
5
votes
1answer
130 views

What happens to fonts (and robust commands) in shipout?

The following example does not produce quite the output I expect: \documentclass{article} \let\origshipout\shipout \def\shipout{\origshipout\vbox{ %\normalsize \emph{hello}}\origshipout} \begin{...
4
votes
1answer
206 views

Can luatex export coordinates of “glyph boxes”?

Consider the following sample LaTeX file: \documentclass{standalone} \begin{document} Test $x^2$ \end{document} When processed by one of the TeX engines, one gets a pdf with glyphs that are ...
3
votes
1answer
120 views

How to prevent shipout of selected pages AND get a full set of cross-references

I would like to retain only a subset of pages, i.e. those which have been marked with the tag command \keepthispage and have come up with the following preamble commands. \RequirePackage{atbegshi} \...
3
votes
2answers
141 views

\pagedir TRT with pgfpages cause an incorrect result (shift out of page)

Using \pagedir TRT with \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm,landscape] from pgfpages package produce logical pages to be shifted out of page. Same issue with layouts 4 on 1, 8 on 1, ...
3
votes
1answer
53 views

Counting shipouts

Is there a way to get the number of pages shipped out so far? To be clear, I want to count "physical" output; I'm not interested in logical page numbers we typically find in the footer or ...
3
votes
1answer
77 views

What settings carry over to a shipped-out page?

When a new page is added to the document by executing a \shipout command, what settings are carried over to the new page from where the \shipout was executed? For instance, as the following example ...
3
votes
1answer
145 views

Table of contents with headings on every page when last page of TOC has a single item

Similar questions have been asked—and answered—a number of times (e.g. here, here, and here), but all the answers seem to have the following bug: if the final page of the table of contents ...
2
votes
2answers
97 views

How to create a tex file in which reflections of the top will be in the bottom of the same page?

I want to prepare a .tex document using TeXStudio satisfying the following: Take an A4 size paper. What ever is written in the top half of the page. Same writing will be reflected on the bottom ...
2
votes
1answer
92 views

Text doesn't show in boxes shipped-out from inside the TikZ source code

I'm trying to understand a certain aspect of the TikZ language by inspecting its source code. The code that I'm interested in is in the file <tex installation directory>/tex/generic/pgf/...
2
votes
1answer
136 views

Why does \openout produce output in plain tex when it does not in latex?

This is a follow up question of this question. Why this plain code (from shreevatsar's answer) \newwrite\outfile \openout\outfile\jobname.out \end produce a page but this (equivalent) latex code ...
2
votes
0answers
50 views

How can I isolate the scope of an object from the localized font settings at shipout?

I need to prevent my TikZ overlay's font settings from inheriting the font settings at ship out. I know this is a grouping issue because the closing } for the localized font changes has not yet been ...
2
votes
0answers
71 views

How to fix this (un)expected result from atbegshi

Please how to fix this? \documentclass{article} \usepackage{lipsum} \usepackage{atbegshi} \begin{document} \section{Foo 1} \lipsum[1-2] \section{Foo 2} \lipsum[1-2] \section{Foo 3} \...
1
vote
2answers
379 views

problem of colors with \AtBeginShipoutBox command

When I compile this code \documentclass{article} \usepackage{blindtext} \usepackage{color} \usepackage{picture} \usepackage{atbegshi} \AtBeginShipoutInit \AtBeginShipout{% \AtBeginShipoutUpperLeft{...
1
vote
1answer
59 views

The color and page order of shipped-out boxes

Consider the following LaTeX manuscript, which sets the document color to red in the preamble, and then proceeds to create a text box, use it, and then ship it out. \documentclass{article} \...
1
vote
1answer
155 views

Does \newpage reliably trigger shipout. as in \AtBeginShipout?

Although I am using TeXlive 2016 with LuaTeX, single-column double-sided pages in a custom document class, I believe this question applies to nearly everything: I am aware that the page shipout ...
1
vote
1answer
109 views

How do I add one blank page after both these pages?

I have two inetial pages in my document. I need to leave blank pages after both pages explicitely. \shipout\null is not working properly. How should I add that? MWE: \documentclass[a4paper,times,...
1
vote
1answer
267 views

TikZ externalized figures render incorrectly when eso-pic is used

I am having some trouble using eso-pic in conjunction with externalised tikz figures. Content added to other document pages using \AddToShipoutPicture*{} is drawn on the TikZ figure. This does not ...
1
vote
1answer
35 views

luatex: latelua execution order, effect on enclosing nodelist, and its inner workings

In my musings on luatex, perhaps like alice in the wonderland, the one thing that is not quite clear is the inner workings of latelua. As I understand, all of the material to be output on a page is ...
1
vote
0answers
18 views

Control the referencing of labels in headlines (hyperref, komascript) [or: how and when to “store” a label properly]

I am in the finishing process of a rather long book (about 2000 pages) for students. Each chapter of the book has a section with questions and another one with the corresponding answers. Some ...
1
vote
0answers
58 views

How to Alternate Geometry Layouts With \atbegshi [closed]

... A documentation question ... Question: Is \AtBeginShipoutNext from the atbegshi package intended to "exceptionally" apply to a single printed page? Or, would this not even work with the ...
0
votes
1answer
192 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
0answers
39 views

How to Add/Insert Some Text to Body at Every New Page, As If It Was Input Directly

Is there any way to add some text to body (not to header or footer) at every new page, as if it was input directly? I want to do like following: Input body text in normaly way; This is line 1. \par ...
0
votes
1answer
36 views

Store value of a macro when a page is finished

After my previous question was not answered, I have trimmed the MWE to what I think is the real problem. I have a macro \recent that stores information (which is needed for hyperref-links). This macro ...