Questions tagged [shipout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

How do I access the name of the current chapter for a background image?

I add a background image to every page and want to add a different one based on the name of the current chapter. It would also be good to know how whether the preface and title pages before the ...
  • 315
0 votes
0 answers
106 views

Access to the complete \ShipoutBox (LaTeX hooks)

The following small sample document shows the manipulation of the \ShipoutBox (mirroring as an example) using a LaTeX hook. The background is not mirrored as it is not yet part of the box. This is an ...
  • 879
2 votes
2 answers
183 views

Only compile first page to pdf

I have a ebook that I also have a paperback cover for. This cover contains the current version which I set in an external file. I have now a revision section which I need to populate the current issue ...
0 votes
0 answers
41 views

Placing a text macro's starting and ending values in the running head of a page

Background: I am editing the transcription of a historical manuscript using the memoir class. The transcription includes the folio numbers of the original manuscript, which are displayed in bold ...
2 votes
1 answer
152 views

How to make box255 compatible with the shipout of latex with 2021 update

I have used pdfscreen to make quick slides from a latex document for easy screen readability. However with the latex update in 2021 the overlay feature is erroneous. I am given to believe that it is ...
1 vote
2 answers
183 views

Hack for reversing page order after some point broken by recent versions of polyglossia

In this question: Reversing page order from a point onward user @BrunoLeFloch offered a very useful hack for page reversal using the atbegshi package. Unfortunately, with recent versions of TeXLive, ...
  • 11.9k
2 votes
3 answers
2k views

Error “Output routine didn't use all of \box255.” using eskdx

win+miktex(the latest)+xelatex MNWE \documentclass[simple]{eskdtext} \usepackage{tinos} \usepackage{xecyr} \usepackage{xunicode,xltxtra} \providecommand{\No}{\textnumero} \begin{document} 12345 \end{...
1 vote
1 answer
251 views

ClearShipoutPicture for next page?

I've managed to use eso-pic + calc packages in order to draw a vertical line on the right margin between a "begin" and an "end" statement. I made this for manuscript review in ...
  • 319
1 vote
1 answer
112 views

How can I make a `tikzmark` inside an environment work over a pagebreak?

This is an extension of my previous question How can I highlight part of an equation with TikZ but without extra space around the highlighted part?. The new question is, how do I make the hilite ...
3 votes
1 answer
501 views

Removing the content of a LaTeX hook (using lthooks)

In a special case (new version of the document class leaflet) I use the new LaTeX hook shipout/before to save the finished pages in box registers without output. In the next step they are combined and ...
  • 879
1 vote
1 answer
86 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,246
4 votes
2 answers
194 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, ...
  • 16.6k
3 votes
1 answer
71 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 ...
0 votes
0 answers
221 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
1 answer
105 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 ...
1 vote
0 answers
37 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
0 answers
84 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 ...
5 votes
2 answers
435 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 ...
  • 9,689
1 vote
1 answer
141 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,...
2 votes
1 answer
274 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 ...
  • 19.2k
3 votes
1 answer
329 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 ...
  • 33
5 votes
1 answer
879 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 ...
  • 10.7k
3 votes
1 answer
103 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 ...
  • 10.7k
1 vote
1 answer
75 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} \...
  • 10.7k
2 votes
1 answer
108 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/...
  • 10.7k
0 votes
1 answer
668 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 ...
  • 3,793
2 votes
0 answers
57 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 ...
1 vote
1 answer
258 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 ...
user avatar
2 votes
0 answers
77 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} \...
  • 19.2k
1 vote
2 answers
462 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{...
  • 19.2k
2 votes
2 answers
102 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 ...
  • 3,243
3 votes
1 answer
162 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} \...
  • 1,325
7 votes
2 answers
668 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 ...
  • 584k
1 vote
1 answer
354 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 ...
  • 31
5 votes
1 answer
140 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{...
  • 7,314