# Tag Info

9

Another option using a tape shape from shapes.symbols: \documentclass[a5paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.symbols} \usepackage{eso-pic} \AddToShipoutPictureBG{% \begin{tikzpicture}[remember picture, overlay] \node[ tape, fill=black, minimum height=2cm,%\paperheight, minimum width=\paperheight, rotate=90] at (current ...

8

Without a full example document this is untested but I assume that \AddToShipoutPicture{% Add picture to background of every page \ifnum\value{page}>1 \AtPageLowerLeft{% \raisebox{3\baselineskip}{\makebox[\paperwidth]{\begin{minipage}{21cm}\centering Draft \end{minipage}}}% }% \fi } would work.

7

Put the \color in a safer place, inside the \put, not before it. The thing to note about \color affecting position is that it is not my fault. An alternative (more suitable for your edited question) is to make your \printA command act like other picture mode commands and remove white space around them. The extra space is in fact an inter-word space coming ...

7

Here's a possible solution: \documentclass{article} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage{blindtext} % just for the example \usepackage[headsep=3cm,top=5cm]{geometry} \usepackage{datatool} % create sample csv file \begin{filecontents*}{test.csv} Id,myauthor,mydate,myaddress 1,Sebastian,12.12.2012,XYZ road,XYZ city 2,Rose,12.12.2013,XYZ ...

6

Use \usepackage[grid, gridcolor=red!20, subgridcolor=green!20, %texcoord, gridunit=pt]{eso-pic} Code: \documentclass[10pt]{article} \usepackage{grffile} \usepackage[grid, gridcolor=red!20, subgridcolor=green!20, %texcoord, gridunit=pt]{eso-pic} \usepackage{pdfpages} \begin{document} \includepdf[pages=-]{snifs_fov} ...

6

After getting the error message ! LaTeX Error: Option clash for package eso-pic. and typing "h" (for help) in an output console, you get an explanation of the problem and a possible solution: The package eso-pic has already been loaded with options: [] There has now been an attempt to load it with options [grid, gridcolor=red!20, ...

6

I used TikZ and its decorations.pathmorphing library. I made rectangle higher than \paperheight to make sure decoration is covering whole area we need. \documentclass[a5paper]{article} \usepackage{tikzpagenodes} \usetikzlibrary{calc} \usetikzlibrary{decorations.pathmorphing} \usepackage{eso-pic} \AddToShipoutPictureBG{% \begin{tikzpicture}[remember ...

6

Since you are performing some additions/subtractions with lengths, you need to either load the calc package: \documentclass{article} \usepackage[a6paper]{geometry}% just for the exmaple \usepackage{pgfornament} \usepackage{eso-pic} \usepackage{calc} \makeatletter \AddToShipoutPicture{% \begingroup \setlength{\@tempdima}{2mm}% ...

6

If you say \put(0,0) you are putting your picture in the lower left corner of the page. I suggest you to use \AtTextUpperLeft and then adjust the values of \put to position your image. For example: \AddToShipoutPicture*{% \AtTextUpperLeft{% \put(-30,-200){\includegraphics[scale=1]{example-image}}% }% } MWE: \documentclass{article} ...

5

Piece of cake with tikz \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \title{Test} \author{Test} \date{\today} \usepackage{tikz} \begin{document} \maketitle \begin{tikzpicture}[remember picture,overlay] \node[anchor=north east,inner sep=0pt] at (current page.north east) ...

4

that looks like a problem with package everyshi. Here is a solution with eso-pic: \documentclass[a5paper]{article} \usepackage[margin=1in]{geometry} %-----------------------------------------------------------% \usepackage{multido} \usepackage[notitlepage,relative]{pst-abspos} \newcommand{\myrules}{% \pstSetRelativeOrigin(0,0)% \pstPutAbs(0,0){% ...

4

put \stepcounter{mycounter} immediately after the \themycounter so it is incremented after it is used. As is you are incrementing it on the main flow but using it twice in the output routine

3

I've modified a little the code in my previous answer introducing a tabular. Can this be OK? Code: \documentclass{article} \usepackage{eso-pic} \usepackage{fancyhdr} \usepackage{blindtext} % just for the example \usepackage[headsep=3cm,top=5cm]{geometry} \AddToShipoutPicture{% \AtTextUpperLeft{% \makebox(420,75)[lt]{% \footnotesize% ...

3

This looks like a bug in tikz: The content stream of the first pages references the two Graphic States pgf@ca0.05 and pgf@CA0.05 (these specify the transparency), but these are not included in the resources of the first page (but on all other pages), so they are unknown there. Tested with TL2011. You should report the bug here.

3

\AddToShipoutPictureBG{% \AtPageUpperLeft{% {\color{red}% \rule[-1cm]%offset PageBorder {\paperwidth}%{14.8cm} {1cm}%height }% }% } If you are not sure then put at every line end the comment character % to avoid trailing spaces. A linebreak is internally replaced by a space. However, in ...

3

You can define a point by yourself in the following manner: \newcommand\AtPageUpperMyleft[1]{\AtPageUpperLeft{% \put(\LenToUnit{1cm},\LenToUnit{-1cm}){#1}% }}% Change 1cm and -1cm as you wish. Full code: \documentclass{article} %% \usepackage{fullpage} %% Use geometry instead \usepackage{eso-pic} \usepackage{graphicx} ...

2

I suggest using eso-pic which allows you to add content at page shipout using a number of different macros: \documentclass{article} \usepackage{lipsum} \usepackage{tikz,eso-pic} \usetikzlibrary{calc} \pagestyle{empty} \newsavebox{\textone} \newsavebox{\texttwo} \newenvironment{topr}{% \begin{lrbox}{\textone}% \begin{minipage}{11cm}% \raggedleft ...

2

Try \usepackage[absolute,overlay]{textpos} The overlay option is designed for this situation, where other packages use the same \shipout mechanism, and put things ‘on top of’ the boxes which the textpos package generates. [overlay] When using the absolute-position mode, the textblocks are placed under any other text on the page. This is normally what ...

2

I had the same problem, I used basic-miktex-2.9.4250. so, I try to replace the name "showframe.sty" with "eso-pic.sty". following this link http://web.mit.edu/texsrc/source/latex/ms/contrib/eso-pic.sty then do like this MikTex Options > Refresh FNDB and Update format. If it does not work, I suggest you to update your packages from MixTex Update Wizard and ...

2

You don't need to load atbegshi. eso-pic loads it automatically since it requires that package. Line breaks are done by two backslashes \\, not by a single one. \ (backslash and space) is for a space in the outut. You could \parbox or a minipage environment to get line and paragraph breaks in the foreground text, such as ...

2

I don't know what you need textpos for, but I was able to generate the following. The watermark appears on pages 1 and 3. You can adjust the key values of \newwatermark and \xwmcolorbox to suit your need. \documentclass[10pt]{article} \usepackage[printwatermark]{xwatermark} \usepackage{xcolor} \usepackage{lipsum} \def\mycontent{rhubarb} ...

1

I've tried some magic with the fancyhdr package. This is it. I run the pdflatex engine. Update: I am shifting page numbers using TeX dimensions. It doesn't affect the rest of the header information. I enclose a preview of the result with and without the geometry package. % run: pdflatex mal-pages.tex \documentclass[11pt]{article} ...

1

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \title{Test} \author{Test} \date{\today} \usepackage{eso-pic} \usepackage[demo]{graphicx} \newcommand\AtPageUpperRight[1]{\AtPageUpperLeft{% \makebox[\paperwidth][r]{#1}}} \begin{document} \AddToShipoutPictureBG*{% ...

1

The following tiling isn't exactly correct, but it is precisely what you would have had if your code compiled. Use, eg, xwatermark package instead. \usepackage{graphicx} \usepackage{catoptions} \usepackage{eso-pic} \makeatletter \cptnewdimens{tileXoffset,tileYoffset,wpXoffset,wpYoffset, tilewidth,tileheight,tileX,tileY} \wpXoffset.25cm\wpYoffset.25cm ...

1

I was unable to get textblock* to achieve your goal, so I wrote a substitute, using the everypage package, \mytextblock}{width}{x-pos}{y-pos}{content}. The background is inserted with an \atxy{xpos}{ypos}{content}. The current implementation only supports one textblock color per page. Let me know if that is sufficient. In the MWE, after placing the ...

1

A ConTeXt solution: \usemodule [visual] \definelayer [fullpage] [x=0mm, y=0mm, width=\paperwidth, height=\paperheight] \setlayer [fullpage] [hoffset=0mm,voffset=0mm] {\externalfigure[mill][height=\paperheight,page=1]} \setupbackgrounds [paper] [background=fullpage] \starttext \framed[background=color,backgroundcolor=yellow,align=normal] ...

1

I employed my answer at What are the ways to position things absolutely on the page? to your problem. It uses everypage rather than eso-pic (see below for eso-pic version). Note that, as written, \atxy only places the overtext on the page from which it is invoked. However, if you wanted the overtext on every page, you could change the \AddThispageHook to ...

1

You can cheat by adding a white rectangle the size of the page to the background on chapter pages to cover over the background picture rather than actually clearing it. Obviously, if you are printing on any colour of paper other than white, you'd need to match the colour. But hopefully that is not so and this will work: ...

1

This is the solution I came to, using a \newtoggle provided by the etoolbox package. The one provided by @cfr is straightforward and uses the commands provided by the eso-pic package, which is already used. However, this solution covers only the desired part, maintaining any other content which may be in the background. I though it would be good to have both ...

1

Ok, I figured out that you can remove the externalized eso-pic calls to \AddToShipoutPicture by adding the option \tikzset{external/optimize command away=\AddToShipoutPicture} to the preamble. This seems to generate figures correctly now, without the eso-pic shipout contents.

Only top voted, non community-wiki answers of a minimum length are eligible