Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
9 years, 6 months ago
Is there any way I can execute a command (
\ifthenelse actually) at the start of every page?
\AtBeginShipout (atbegshi) but that seem to get executed when the page is about to be rendered (shipped out). I want something different, as soon as the page is about to start.
245k 69 69 gold badges 712 712 silver badges 783 783 bronze badges
Nov 15, 2013 at 17:21
17.5k 9 9 gold badges 64 64 silver badges 114 114 bronze badges
You'll need the package
to add commands at the beginning of each page:
\AtBeginPage hook, you can add material in the background of
a page. Think of it as a construct that does: For every page, create a
picture environment with its origin at the top left corner of the
paper (resp., output device). So for example, you can put an image
that is three centimeters from the left border and five from the top
border by saying
Jun 4, 2017 at 12:45
186 1 1 silver badge 4 4 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only