Tag Info

Hot answers tagged

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 ...


7

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

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}% ...


5

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, ...


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

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} ...


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

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) ...


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

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

\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

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

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 ...



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