[pdftex] pdflatex and pagecolor

Martin Kluge martin at elxsi.de
Mon Sep 8 17:13:54 CEST 2003


Hi list,

I have a strange problem when using pdflatex on the following document:

\documentclass[11pt,german,a4paper]{article}
\pagestyle{empty}
\usepackage{german}
\usepackage{graphicx}
\usepackage{color}
\pagecolor{red}
\color{green}
\begin{document}
\title{Bla}
\author{\copyright \space by Martin Kluge}
\date{Revision: \today}
\maketitle

\color{white}
\textcolor{red}{\section{Einf\"uhrung}}

If I run pdflatex on this document, I get the following error:

-bash-2.05b# pdflatex atm-vortrag.tex
This is pdfTeX, Version 3.14159-13d (Web2C 7.3.1)
(atm-vortrag.tex[/usr/local/share/texmf/pdftex/config/pdftex.cfg]
LaTeX2e <1999/12/01> patch level 1
Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/local/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
(/usr/local/share/texmf/tex/latex/base/size11.clo))
(/usr/local/share/texmf/tex/generic/german/german.sty v2.5e 1998-07-08)
(/usr/local/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/local/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/local/share/texmf/tex/latex/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex/config/graphics.cfg)
(/usr/local/share/texmf/tex/latex/graphics/pdftex.def)))
(/usr/local/share/texmf/tex/latex/graphics/color.sty
(/usr/local/share/texmf/tex/latex/config/color.cfg))
! Undefined control sequence.
<argument> ...ng \c

If I run pdflatex on this document, I get the following error:

-bash-2.05b# pdflatex atm-vortrag.tex
This is pdfTeX, Version 3.14159-13d (Web2C 7.3.1)
(atm-vortrag.tex[/usr/local/share/texmf/pdftex/config/pdftex.cfg]
LaTeX2e <1999/12/01> patch level 1
Babel <v3.6Z> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/local/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
(/usr/local/share/texmf/tex/latex/base/size11.clo))
(/usr/local/share/texmf/tex/generic/german/german.sty v2.5e 1998-07-08)
(/usr/local/share/texmf/tex/latex/graphics/graphicx.sty
(/usr/local/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/local/share/texmf/tex/latex/graphics/graphics.sty
(/usr/local/share/texmf/tex/latex/graphics/trig.sty)
(/usr/local/share/texmf/tex/latex/config/graphics.cfg)
(/usr/local/share/texmf/tex/latex/graphics/pdftex.def)))
(/usr/local/share/texmf/tex/latex/graphics/color.sty
(/usr/local/share/texmf/tex/latex/config/color.cfg))
! Undefined control sequence.
<argument> ...ng \color @red\endcsname \set at color

l.7 \pagecolor{red}

?

Why doesn't \pagecolor{red} work? I'm running tex/latex from the freebsd 5.0
ports:

-bash-2.05b# uname -a
FreeBSD xxxxxxxxxxxxx 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GM
T 2003     root at hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386

-bash-2.05b# tex --version
TeX (Web2C 7.2) 3.14159
kpathsea version 3.2

-bash-2.05b# pdflatex --version
pdfTeX (Web2C 7.3.1) 3.14159-0.13d
kpathsea version 3.3.1

I only want to change the background color of my PDF file, is there another
way instead of using \pagecolor?

I searched for this error on google, but didn't find anything useful.

This works on linux without any problems (tried it at a friends' linux box).

Can you please help me and tell me what I'm doing wrong?


Thanks for your help!

Martin
-- 
Name	   : Martin Kluge
email	   : martin at elxsi.info
Phone	   : +49 160 1515182
Projects   : http://www.aa-security.de
GPG Key	   : http://www.elxsi.de/key.pub



More information about the pdftex mailing list