Questions tagged [atbegshi]

The pack­age is a modern reim­ple­men­ta­tion of the {ev­eryshi} package.

Filter by
Sorted by
Tagged with
6 votes
1 answer
143 views

Access exact page break via lualatex

I have a journal layout where the first page (with the article title) has an odd 1.5 column layout. The first column which holds the meta data is narrower than the right column with the first few ...
Lupino's user avatar
  • 2,650
0 votes
1 answer
51 views

Why does "draft" get used as background image instead of my image?

I'm trying to get AddToHook to work to add a background image and unfortunately, it always shows "Draft" in read written diagonally over the page instead of the background image image.png ...
Christian's user avatar
  • 331
0 votes
1 answer
377 views

Different Results from Overleaf and VSCode?

My question is mostly trying to troubleshoot why I get different results in VSCode vs Overleaf. When I paste this code into Overleaf vs VSCode/LaTeX Workshop I get different results. The code comes ...
Drew M.'s user avatar
  • 15
0 votes
1 answer
47 views

Removing spacing for multiple inline citations

I am using the package atbegshi to compile my bibliography. However, for multiple inline citations, I keep getting [1, 2] when I really wanted [1,2]. I have tried removing the spacing between the ...
user avatar
0 votes
0 answers
47 views

Execute some code at the beginning of each page: how to do it in my case?

I use an environment for my exercises that draw an horizontal rule before each exercise. I would like to prevent the rule to be drawn if the exercise is at the beginning of a page. I use a variable \...
Colas's user avatar
  • 6,658
1 vote
1 answer
81 views

How to write rhead only on the first page - what is wrong with the code?

How to write rhead only on the first page? Why does this code not work? \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fancyhdr} \lhead{} \...
Elena Greg's user avatar
5 votes
1 answer
190 views

storebox not working as expected since texlive 2020

I have to include page-specific content multiple times per page (DM codes to be specific) in a LaTeX document. To that end I use a combination of storebox and everypage such that content is typeset ...
moepi's user avatar
  • 51
1 vote
1 answer
238 views

Opacity not present on first page with package 'atbegshi' when using xelatex

I am creating my draftmarks using the package tikz on the XeLaTeX engine. In order to place this mark on every page I use the package atbegshi. Consider the following example: \documentclass[a4paper]{...
Pieter Stroobants's user avatar
0 votes
0 answers
398 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
117 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
1 answer
84 views

tikzpicture in the background of text that is typeset in non-restricted horizontal mode?

I'd like to get a tikzpicture into the background of text that is typeset by LaTeX in non-restricted horizontal mode. Currently I do such things by means of the atbegshi-package. Something similar ...
Ulrich Diez's user avatar
  • 27.5k
0 votes
0 answers
1k views

atbegshi.sty not found

After some effort (removing a lot of files from my account) I have used tlmgr to update my texlive. Now I get an error message saying atbegshi.sty not found. I have no idea that I had used this. I ...
Peter Wilson's user avatar
  • 27.8k
1 vote
0 answers
94 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
3 votes
1 answer
148 views

Unwanted gap between top margin and text caused by tikzpicture overlay

I have the following code based on atbegshi, tikz and a boolean switch to insert pages with a sidebar: \documentclass[a4paper]{article} \usepackage[margin=1.0cm,noheadfoot,showframe]{geometry} \...
JotWe's user avatar
  • 167
2 votes
1 answer
542 views

Add a vertical bar to specific pages using TikZ

I use a template that creates a document with two pages. The first page has a vertical bar and the second page has a horizontal bar. I would like to extend this template in order to add an arbitrary ...
JotWe's user avatar
  • 167
3 votes
1 answer
87 views

How to get page number of tikzmark markers?

Given the following example using the tikzmark library: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage{atbegshi} \AtBeginShipout{\AtBeginShipoutUpperLeft{% \...
siracusa's user avatar
  • 13.3k
4 votes
1 answer
139 views

How to automatically insert a pdf (or picture) after every page (except first one)?

after years of reading TeX.SX, I registered to ask my first question :-)). I’m a teacher, and I want to leave an almost blank page after each page of a document, for my students to take notes. I’ve ...
Benjamin Renaud's user avatar
3 votes
1 answer
395 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
4 votes
1 answer
289 views

atbegshi vs. lineno : retrieving the number of lines of a given page

I am trying to understand a bit better what atbegshi and lineno do (or accomplish). In the following example, I add the current linenumber to the shipout and am struggling to fully understand what's ...
user avatar
2 votes
2 answers
88 views

Ship only the last physical page (or the last two/three physical pages)

My question is related to and in continuation to Compiling only a page range or page selection I would like to output only the last page (or last two/three pages) without knowing the total number of ...
magguu's user avatar
  • 917
1 vote
1 answer
277 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
1 answer
60 views

A splitted lstlisting environment between pages ignores some of tikz effects

I want to set a decorated page number packing in the the Tikz node with the use of \AtBeginShipout macro, but when a lstlisting environment with basicstyle option seting font to \ttfamily breaks ...
javadr's user avatar
  • 2,394
5 votes
1 answer
136 views

\AtBeginShipoutInit macro of atbegshi causes weird behavior of opacity option in tikz with xelatex

Using \AtBeginShipoutInit causes the opacity option doesn't work at the first page properly, without that there is no problem with the code. \documentclass{article} \usepackage{lipsum} \usepackage{...
javadr's user avatar
  • 2,394
3 votes
1 answer
451 views

Problem with atbegshi and caption / chapter

I'm trying to insert pages in a document using \AtBeginShipoutNext from the atbegshi package. However, I'm getting errors when the page where \AtBeginShipoutNext is called contains a \chapter{} or \...
phausamann's 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.4k
0 votes
1 answer
2k views

Right Align Page Number -- problem using fancyhdr and \AtBeginShipoutNext

I've tried so many methods but nothing seems to work. I want to right align the pages only after the content page. I also keep getting a line above the cover page that I don't need. Is the code neat? ...
Mr. T's user avatar
  • 101
6 votes
1 answer
1k views

Error using pdfpages and lualatex

After upgrading to Tex Live 2016/Debian i get errors when using the package pdfpages and compiling with Lualatex. If i try to compile \documentclass[a4paper,portrait]{article} \usepackage{pdfpages} \...
joão gândara's user avatar
6 votes
2 answers
1k views

Extra page when using tikzpicture called by AtBeginShipout?

I have been attempting to use \AtBeginShipout and tikz to draw header and footer art as suggested in solution for creating newsletter art by user Gonzalo Medina. One problem that has been ...
Brian Kubera's user avatar
1 vote
2 answers
481 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.4k
0 votes
1 answer
138 views

Is pdflscape incompatible with atbegshi or TikZ? Possible cause of Error 14 in Adobe Acrobat [XeTeX]

I am going nuts trying to figure out two issues that may be related. The first one is the fact that a \AtBeginShipout from atbegshi "seems" to be called twice on the first page, because the opacity ...
Jonathan Komar's user avatar
3 votes
1 answer
167 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,375
7 votes
2 answers
690 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
  • 598k
1 vote
1 answer
1k views

Change page layout at begin of each page

I want to have very different page layout for even and odd pages. To solve this problem i try to use atbegshi and geometry packages. But it takes a strange result: after \newgeometry executed page ...
Daniel G's user avatar
2 votes
1 answer
114 views

Clash between amsmath, atbegshi, and texpower packages?

Consider this document: \documentclass{article} \usepackage{amsmath} \usepackage{texpower} \usepackage{picture} \usepackage{atbegshi} \setbox0\hbox{\textbf{TEXT}} \AtBeginShipout{% \...
Aditya's user avatar
  • 390
1 vote
0 answers
195 views

Footnotes and atbegshi header

I have done combination of eledpar and parcolumns packages 4 parallel texts on 2 pages. Using Atbegshi package adding page headers. Everything works fine, but when I add footnote page headers are lost....
Levan Shoshiashvili's user avatar
5 votes
1 answer
968 views

Printing text at the bottom of the next page

I am having some trouble placing text at the bottom of the next page. For some reason, the text is being printed at the bottom of the current page. I tried nesting but it only works for the first ...
Ephraim Ncory's user avatar
2 votes
0 answers
72 views

Collect text in mdframed and print at the bottom of the next page

I am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. All text is always enclosed in a frame and the frame can span multiple pages but the collected ...
Enem's user avatar
  • 41
3 votes
0 answers
129 views

Collect in mdframed and print at the bottom of the next page

I am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. All text is always enclosed in a frame and the frame can span multiple pages but the collected ...
Ephraim Ncory's user avatar
3 votes
2 answers
1k views

Full page floating figure with TikZ overlay in twocolumn document?

I have a peculiar problem with my LaTeX document. I have a twocolumn document and would like to include a figure that is spread over an entire new page and contains a TikZ picture (where I can input a ...
A13's user avatar
  • 31
3 votes
1 answer
2k views

\afterpage not called after page break

In this example \documentclass{article} \usepackage[a6paper,landscape,margin=1cm,bottom=2cm]{geometry} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{afterpage,refcount,lastpage} \...
porst17's user avatar
  • 1,457
2 votes
2 answers
3k views

xwatermark package: help using small caps and putting watermark on top of text

Hi in the linked question I asked how best to use AtBegShi to put titles on to of a page as a title. I'm using these as the equivalent of an MS Word textbox at the top of each page that carries the ...
Tahnoon Pasha's user avatar