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
0 votes
1 answer
31 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 ...
user avatar
  • 15
0 votes
1 answer
36 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
38 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 \...
user avatar
  • 6,130
1 vote
1 answer
33 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{} \...
user avatar
5 votes
1 answer
162 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 ...
user avatar
  • 51
1 vote
1 answer
101 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]{...
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
84 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
1 answer
48 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 ...
user avatar
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 ...
user avatar
  • 25.2k
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
3 votes
1 answer
124 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} \...
user avatar
  • 167
2 votes
1 answer
347 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 ...
user avatar
  • 167
3 votes
1 answer
60 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{% \...
user avatar
  • 12.8k
4 votes
1 answer
97 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 ...
user avatar
3 votes
1 answer
219 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
4 votes
1 answer
246 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
80 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 ...
user avatar
  • 847
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
1 answer
59 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 ...
user avatar
  • 2,302
5 votes
1 answer
97 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{...
user avatar
  • 2,302
3 votes
1 answer
284 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 \...
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
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? ...
user avatar
  • 1
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} \...
user avatar
5 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 ...
user avatar
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
0 votes
1 answer
133 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 ...
user avatar
3 votes
1 answer
151 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,275
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
957 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 ...
user avatar
2 votes
1 answer
110 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{% \...
user avatar
  • 370
1 vote
0 answers
186 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....
user avatar
5 votes
1 answer
818 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 ...
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 ...
user avatar
  • 41
3 votes
0 answers
126 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 ...
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 ...
user avatar
  • 31
3 votes
1 answer
1k 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} \...
user avatar
  • 1,447
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 ...
user avatar