Questions tagged [shipout]
The shipout tag has no usage guidance.
28
questions
0
votes
1answer
19 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 ...
1
vote
1answer
32 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
1answer
96 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 ...
1
vote
1answer
48 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 ...
4
votes
2answers
159 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
55 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
0answers
42 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
47 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
0answers
23 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
62 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 ...
4
votes
1answer
225 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 ...
1
vote
1answer
115 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
1answer
155 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 ...
3
votes
1answer
156 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 ...
5
votes
1answer
526 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 ...
3
votes
1answer
85 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 ...
1
vote
1answer
60 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}
\...
2
votes
1answer
95 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/...
0
votes
1answer
230 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 ...
2
votes
0answers
52 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
1answer
165 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 ...
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
399 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{...
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 ...
3
votes
1answer
126 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}
\...
7
votes
2answers
469 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 ...
1
vote
1answer
286 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 ...
5
votes
1answer
132 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{...