Questions tagged [shipout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 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 ...
user avatar
2 votes
1 answer
92 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 ...
user avatar
1 vote
2 answers
170 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, ...
user avatar
  • 11.3k
2 votes
3 answers
1k 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{...
user avatar
0 votes
1 answer
107 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 ...
user avatar
  • 179
1 vote
1 answer
62 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 ...
user avatar
3 votes
1 answer
339 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 ...
user avatar
  • 847
1 vote
1 answer
68 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 ...
user avatar
  • 1,228
4 votes
2 answers
184 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, ...
user avatar
  • 16k
3 votes
1 answer
66 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 ...
user avatar
0 votes
0 answers
86 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 ...
user avatar
0 votes
1 answer
83 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 ...
user avatar
1 vote
0 answers
30 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 ...
user avatar
1 vote
0 answers
77 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 ...
user avatar
4 votes
2 answers
342 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 ...
user avatar
  • 9,468
1 vote
1 answer
128 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,...
user avatar
2 votes
1 answer
216 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 ...
user avatar
  • 19k
3 votes
1 answer
218 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 ...
user avatar
  • 33
5 votes
1 answer
820 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 ...
user avatar
  • 8,684
3 votes
1 answer
95 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 ...
user avatar
  • 8,684
1 vote
1 answer
71 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} \...
user avatar
  • 8,684
2 votes
1 answer
104 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/...
user avatar
  • 8,684
0 votes
1 answer
482 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 ...
user avatar
  • 3,733
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 ...
user avatar
1 vote
1 answer
219 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
75 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} \...
user avatar
  • 19k
1 vote
2 answers
436 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{...
user avatar
  • 19k
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 ...
user avatar
  • 3,088
3 votes
1 answer
150 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} \...
user avatar
  • 1,273
7 votes
2 answers
626 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 ...
user avatar
  • 565k
1 vote
1 answer
317 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 ...
user avatar
  • 31
5 votes
1 answer
138 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{...
user avatar
  • 6,994