Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

background picture

114 views
Skip to first unread message

fred

unread,
Jan 16, 2010, 1:39:52 AM1/16/10
to
I receive this message when I try to compile the code to put a
background picture with Winedt.
Please help fix that problem.


Message : Pdf teXify failed to create a pdf file


Code
\documentclass[12pt]{article}
\usepackage{eso-pic}
\newcommand\BackgroundPic{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,
keepaspectratio]{background.png}%
\vfill
}}}

\begin{document}
%The * will make sure that the background picture will only be put on
one page.
\AddToShipoutPicture*{\BackgroundPic}


\pagestyle{empty}

%Then use this command to stop using the background picture:
\ClearShipoutPicture

\end{document}

Heiko Oberdiek

unread,
Jan 16, 2010, 2:31:46 AM1/16/10
to
fred <fred...@yahoo.com> wrote:

> I receive this message when I try to compile the code to put a
> background picture with Winedt.
> Please help fix that problem.
>
>
> Message : Pdf teXify failed to create a pdf file

Check the documentation of Winedt, how to get the real error message
of the TeX compiler.

The TeX compiler also writes a file with the name of the .tex file but
with extension .log. Also here you can find the error messages.

Probably you have the following error:

| ! Undefined control sequence.
| <argument> \includegraphics

That means, you have forgotten to load the package `graphicx'.

> Code
[...]
\usepackage{graphicx}
[...]
\newcommand\BackgroundPic{%
\put(0,0){%
\makebox(0,0)[bl]{%
\includegraphics[
width=\paperwidth,
height=\paperheight,
keepaspectratio
]{s1.png}%
}%
}%
}
[...]

Yours sincerely
Heiko <ober...@uni-freiburg.de>

Christian Ebert

unread,
Jan 16, 2010, 7:58:05 AM1/16/10
to
* Heiko Oberdiek on Saturday, January 16, 2010:

eso-pic also provides the \AtPageLowerLeft helper command which
you could use instead of \put(0,0){...}

c
--
\black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_
Ein deutscher Western/A German Western

--->> http://www.blacktrash.org/underdogma/ccc.php

fred

unread,
Jan 17, 2010, 9:44:40 AM1/17/10
to
---------------------------
Hello,

I still have problem compiling this example. It did not recognize
(rose) color. I add package color, I change color. Nothing is working?
Thanks again for your help.

---------------------------------------
% file `eso-ex2.tex'; an example for background pictures
% Rolf Niepraschk, 2002-07-27, niepr...@ptb.de
\listfiles
\documentclass{article}
%\usepackage{eso-pic}
\usepackage{eso-pic}
\usepackage{graphicx}
\usepackage[dvips]{geometry}


% Tells `dvips' and `pdfTeX' the papersize.

% `rose.eps' from CTAN: macros/generic/boxedeps/
\newcommand\BackgroundPicture{%
\put(0,0){%


\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering

\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{rose}%
\vfill
}}}
% The picture is centered on the page background

\AddToShipoutPicture{\BackgroundPicture}

\begin{document}

\section{\TeX}

\ClearShipoutPicture
\section{Empty}

\newpage

\AddToShipoutPicture{\BackgroundPicture}
\section{\LaTeX}

\end{document}

Joris

unread,
Jan 17, 2010, 11:45:34 AM1/17/10
to
> % Rolf Niepraschk, 2002-07-27, niepras...@ptb.de

In your example rose.eps is an encapsulated postscript (eps) file,
which is a graphics file. Have a look at the xcolor package
http://mirror.ctan.org/macros/latex/contrib/xcolor/xcolor.pdf
if you want to use colors in your document.

gswit...@gmail.com

unread,
Jun 8, 2013, 3:00:22 AM6/8/13
to
i again got error (no page of output)
the code is
\documentclass{article}

\usepackage{eso-pic}
\usepackage{graphicx}
\newcommand\backgroundPic{%
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{

\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{/home/gurwinder/Downloads/degree.jpg}%

}
}
}

\begin{document}
\AddToShipoutPicture{\BackgroundPic}

\pagestyle{empty}
\end{document}

please help in this

GL

unread,
Jun 8, 2013, 4:27:30 AM6/8/13
to
??? \backgroundPic <> \BackgroundPic
Why \par before \centering and after \includegraphics ?

Anyway, there is no shipout if the main list is void :
you should say at least:
\pagestyle {empty}
\vfill\null
\end{document}
0 new messages