Questions tagged [shipout]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
67 views

Execute simple command at shipout, depending on value of a boolean

I use only lualatex, but perhaps this is a general LaTeX question. Assume that TeXlive 2023 or later is used, since there is no need for backwards compatibility. I have looked at atbegshi and some ...
rallg's user avatar
  • 2,265
3 votes
0 answers
33 views

Get the location of a point in a box without shipout

Given the following code: \documentclass{article} \begin{document} \setbox0=\hbox{hello \fbox{other [.] text} world.} \box0 \end{document} I can use zref-savepos to determine the location of the dot ...
user202729's user avatar
  • 7,083
1 vote
2 answers
77 views

Shipout and writes to file

During compilation of a latex document, the pages are "shipped out" one at a time. I understand this is marked by console message [1], [2], [3] etc, making each page. However, by inspecting ...
Jamie Vicary's user avatar
  • 11.1k
1 vote
1 answer
15 views

Insert content to the beginning of every page for a user defined page range

I want to insert some content (in my case a table) to the beginning of every page. Furthermore I want to set two "markers" in the document such that it is printed only on the beginning of ...
Julia's user avatar
  • 1,648
1 vote
1 answer
80 views

How can I get the number of the last item of a list appearing on a page?

I have a long list in an enumerate environment. I would like to put as header to the page (or in any case to save in a variable to use elsewhere) the number of the last item appearing on it. A minimal ...
lucag73's user avatar
  • 83
0 votes
1 answer
42 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 ...
Christian's user avatar
  • 341
2 votes
1 answer
200 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 ...
rolfn's user avatar
  • 939
2 votes
2 answers
595 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 ...
Jimmy Westberg's user avatar
0 votes
0 answers
49 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 ...
35royan2's user avatar
2 votes
1 answer
174 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 ...
Vivek Sharma's user avatar
1 vote
2 answers
197 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, ...
einpoklum's user avatar
  • 12.3k
3 votes
3 answers
3k 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{...
Egor Pugin's user avatar
1 vote
1 answer
407 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 ...
Etsaf's user avatar
  • 339
1 vote
1 answer
163 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 ...
LaTeXereXeTaL's user avatar
3 votes
1 answer
681 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 ...
rolfn's user avatar
  • 939
1 vote
1 answer
104 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 ...
codepoet's user avatar
  • 1,316
4 votes
1 answer
210 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, ...
Salim Bou's user avatar
  • 17k
3 votes
1 answer
84 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 ...
Sašo Živanović's user avatar
0 votes
0 answers
465 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 ...
cmplstofB's user avatar
0 votes
1 answer
127 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 ...
Cyprinius's user avatar
1 vote
0 answers
43 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 ...
Cyprinius's user avatar
1 vote
0 answers
99 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 ...
elika kohen's user avatar
6 votes
2 answers
487 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 ...
cjorssen's user avatar
  • 10k
1 vote
1 answer
153 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,...
rudresh dwivedi's user avatar
2 votes
1 answer
358 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 ...
touhami's user avatar
  • 19.5k
3 votes
1 answer
409 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 ...
Rettre's user avatar
  • 33
5 votes
1 answer
907 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 ...
Evan Aad's user avatar
  • 11k
3 votes
1 answer
117 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 ...
Evan Aad's user avatar
  • 11k
1 vote
1 answer
80 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} \...
Evan Aad's user avatar
  • 11k
2 votes
1 answer
121 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/...
Evan Aad's user avatar
  • 11k
0 votes
1 answer
883 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 ...
Ch'en Meng's user avatar
  • 3,843
2 votes
0 answers
59 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 ...
Jonathan Komar's user avatar
1 vote
1 answer
284 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} \...
touhami's user avatar
  • 19.5k
1 vote
2 answers
494 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{...
touhami's user avatar
  • 19.5k
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 ...
Litun's user avatar
  • 3,295
3 votes
1 answer
170 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} \...
frederik's user avatar
  • 1,405
7 votes
2 answers
702 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 ...
Werner's user avatar
  • 602k
2 votes
1 answer
398 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 ...
mgb45's user avatar
  • 51
5 votes
1 answer
143 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{...
Norman Gray's user avatar
  • 7,479