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


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

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


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

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


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

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

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

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

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


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

\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*{% ...


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

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

Thanks for the report. I've just fixed it and will upload a new version to CTAN propably this week. If you would like to get a pretest version earlier send me a note by PM. Update: Pdfpages, version 0.5e, is on CTAN since yesterday. It fixes the above-mentioned incompatibility with eso-pic's option `texcoord'.


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


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

There is no Right counterpart to the exists Lefts. But you can move stuff into position: \documentclass{article} \usepackage{eso-pic,graphicx} \usepackage{lipsum,showframe}% Just for this example \begin{document} \AddToShipoutPictureBG*{ \AtTextUpperLeft{% \makebox[\textwidth][r]{% Move over to right so right aligns with right of text block ...


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

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

The pdfpages package assumes that the coordinate system always start in the lower left hand corner. So when texcoord=true is active and the coordinate system now starts at the upper left hand corner, the included pages are included at coordinates above the visible area of the current page. Solution: don't use texcoord=true As Ulrike mentioned one could use ...


2

The following provides an interface for page style-specific backgrounds: \documentclass[twoside]{book} \usepackage{fancyhdr,graphicx,afterpage,eso-pic} \renewcommand{\headrulewidth}{0pt} \let\oldpagestyle\pagestyle \let\oldthispagestyle\thispagestyle \renewcommand{\pagestyle}[1]{% Update \pagestyle{<style>}... \gdef\thepagestyle{#1}% ...to store ...


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

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.


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



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