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
1
vote
0answers
40 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 ...
3
votes
1answer
50 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} \...
1
vote
1answer
51 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 ...
3
votes
1answer
28 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{% \...
3
votes
1answer
54 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 ...
3
votes
1answer
76 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 ...
4
votes
1answer
107 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 ...
2
votes
2answers
68 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 ...
1
vote
1answer
112 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
1answer
47 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 ...
5
votes
1answer
68 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{...
3
votes
1answer
77 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 \...
2
votes
0answers
65 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} \...
0
votes
1answer
891 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? ...
5
votes
1answer
743 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} \...
2
votes
2answers
467 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 ...
1
vote
2answers
314 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{...
0
votes
1answer
110 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 ...
3
votes
1answer
93 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
356 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
539 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 ...
2
votes
1answer
74 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{% \...
1
vote
0answers
164 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....
5
votes
1answer
529 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 ...
2
votes
0answers
70 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 ...
3
votes
0answers
120 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 ...
3
votes
2answers
880 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 ...
3
votes
1answer
612 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} \...
2
votes
2answers
2k 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 ...