[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Package 'prosper' and color in Latex




Hi,

I have installed the latest versions (from 'unstable') of the Debian packages tetex-{base,bin,extra} and prosper.

I am making slides using the 'prosper' class, and I want to be able to change the color of some words. (I don't want to change the color of everything, just to highlight some words - I think it looks better than \emph).

When I try to use the "color" package in conjunction with "prosper", LaTeX fails with the following error:
--------------------------------------------------------------
! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.159   \definecolor{black}{gray}{0}

?
---------------------------------------------------------------

This seems to happen when "color.sty" is loaded.

The latex input producing this error is:
---------------------------------------------------------------
\documentclass[pdf]{prosper}
\usepackage{color}
\begin{document}
\textcolor{blue}{Blue Text}
\end{document}
---------------------------------------------------------------

Or, (using the "mpa" style file from http://www.nefkom.net/georg.drenkhahn/prosper/PPRmpa.sty):
---------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\documentclass[pdf,mpa]{prosper}
% Fails with or without the following line:
%\usepackage{pstricks,pst-node}
\begin{document}
\textcolor{blue}{Blue Text}
\end{document}
---------------------------------------------------------------

The log file from running Latex on the second example is attached.

I Googled this problem and came across a number of fixes, but none has worked for me yet. One of the common suggestions is to modify "color.cfg" (which on Debian is /usr/share/texmf/tex/latex/config/color.cfg) by adding the following:
---------------------------------------------------------------
%% http://www.tug.org/pipermail/pstricks/2003/001141.html
%% workaround for a strange bug in color.sty / seminar / prosper
\def\color at gray#1#2{%
   \c at lor@arg{#2}%
   \edef#1{gray #2}%
   }
---------------------------------------------------------------
but the problem persists with and without this "fix".

I would very much appreciate any tips, hints, or suggestions. I am happy to provide more information as required.

Thanks very much,
dustin.
This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5) (format=latex 2004.12.6)  6 DEC 2004 13:29
entering extended mode
**tst3
(./tst3.tex
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, catalan, croatian, czech, danish, dutch, finnish, greek, iceland
ic, irish, italian, latin, magyar, norsk, norsk, portuges, romanian, russian, s
lovak, slovene, spanish, swedish, turkish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/prosper/prosper.cls
Document Class: prosper 2003/03/20, v. 1.6
(c) 2000-2003 Frederic Goualard, IRIN, France
 and Peter M^^f8ller Neergaard, Boston Univ., USA
CVSId: $Id: prosper.cls,v 1.25 2003/02/21 18:32:56 exupery Exp $
(/usr/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(/usr/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(/usr/share/texmf/tex/latex/config/graphics.cfg
File: graphics.cfg 2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: dvips.def on input line 80.

(/usr/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
\Gin@req@height=\dimen102
\Gin@req@width=\dimen103
)
(/usr/share/texmf/tex/latex/seminar/seminar.cls
Document Class: seminar 1997/10/13, 1.4
Document Style: `seminar' v1.4 <1997/10/13> (tvz)
\slidewidth=\dimen104
\slideheight=\dimen105
\footheight=\dimen106
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/leqno.clo
File: leqno.clo 1998/08/17 v1.1c Standard LaTeX option (left equation numbers)
)
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen107
)
(/usr/share/texmf/tex/latex/seminar/sem-page.sty)
\before@document=\toks15
\after@document=\toks16
\before@enddocument=\toks17
\c@slide=\count87
\slide@count=\count88
\@slidebox=\box26
\not@slidebox=\box27
\slide@hook=\toks18
\after@slide=\toks19
\slide@footins=\insert233
\slide@listdepth=\count89
\saved@specials=\box28
\before@newslide=\toks20
\after@slidepage=\toks21
\slidesep=\skip43
\c@note=\count90
\slideframewidth=\dimen108
\slideframesep=\dimen109
\semin=\dimen110
\semcm=\dimen111
)
(/usr/share/texmf/tex/latex/config/seminar.con)
(/usr/share/texmf/tex/latex/seminar/semcolor.sty
Style Option: `semcolor' for doc style `seminar' 1.0 <93/04/01> (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v97 patch 14  <1999/12/23> (tvz)
\pst@dima=\dimen112
\pst@dimb=\dimen113
\pst@dimc=\dimen114
\pst@dimd=\dimen115
\pst@dimg=\dimen116
\pst@dimh=\dimen117
\pst@hbox=\box29
\pst@boxg=\box30
\pst@cnta=\count91
\pst@cntb=\count92
\pst@cntc=\count93
\pst@cntd=\count94
\pst@cntg=\count95
\pst@cnth=\count96
\pst@toks=\toks22
(/usr/share/texmf/tex/generic/pstricks/pstricks.con)
\psunit=\dimen118
\psxunit=\dimen119
\psyunit=\dimen120
\pslinewidth=\dimen121
\pst@customdefs=\toks23
\pslinearc=\dimen122
\everypsbox=\toks24
\psframesep=\dimen123
\pslabelsep=\dimen124
\theoverlaybox=\box31
))
(/usr/share/texmf/tex/latex/seminar/semlayer.sty
\@@slidebox=\box32
\c@overlay=\count97
)
(/usr/share/texmf/tex/latex/seminar/seminar.bug)
(/usr/share/texmf/tex/latex/seminar/seminar.bg2
seminar.bg2: various corrections for the Seminar document class added since sem
inar.bug (waiting Seminar 98)
(Version 1.7 of <May 22, 1998> (D.G.))
) (/usr/share/texmf/tex/latex/prosper/seminar-bg2-lepennec.fix)
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
Package: hyperref 2003/01/22 v6.73n Hypertext links for LaTeX
\@linkdim=\dimen125
\Hy@linkcounter=\count98
\Hy@pagecounter=\count99

(/usr/share/texmf/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2003/01/22 v6.73n Hyperref: PDFDocEncoding definition (HO)
)
(/usr/share/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
)
Package hyperref Info: Option `bookmarks' set `true' on input line 1744.
Package hyperref Info: Option `pdffitwindow' set `true' on input line 1744.
Package hyperref Info: Option `pdfcenterwindow' set `true' on input line 1744.
Package hyperref Info: Hyper figures OFF on input line 1792.
Package hyperref Info: Link nesting OFF on input line 1797.
Package hyperref Info: Hyper index ON on input line 1800.
Package hyperref Info: Plain pages ON on input line 1805.
Package hyperref Info: Backreferencing OFF on input line 1812.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 1916.
(/usr/share/texmf/tex/latex/misc/url.sty
\Urlmuskip=\muskip10
Package: url 1999/03/28  ver 1.5x  Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 2055.
\Fld@menulength=\count100
\Field@Width=\dimen126
\Fld@charsize=\dimen127
\Choice@toks=\toks25
\Field@toks=\toks26
Package hyperref Info: Hyper figures OFF on input line 2513.
Package hyperref Info: Link nesting OFF on input line 2518.
Package hyperref Info: Hyper index ON on input line 2521.
Package hyperref Info: backreferencing OFF on input line 2528.
Package hyperref Info: Link coloring OFF on input line 2533.
\c@Item=\count101
\c@Hfootnote=\count102
)
*hyperref using driver hdvips*
(/usr/share/texmf/tex/latex/hyperref/hdvips.def
File: hdvips.def 2003/01/22 v6.73n Hyperref driver for dvips

(/usr/share/texmf/tex/latex/hyperref/pdfmark.def
File: pdfmark.def 2003/01/22 v6.73n Hyperref definitions for pdfmark specials
\pdf@docset=\toks27
\pdf@box=\box33
\pdf@toks=\toks28
\pdf@defaulttoks=\toks29
\Fld@listcount=\count103
\@outlinefile=\write3
))
\theoverlays=\box34
\c@overlaysCount=\count104
\c@limitOverlays=\count105
\@tempoLimit=\count106
\slideWidth=\skip44
\c@trueSlideCounter=\count107

(/usr/share/texmf/tex/latex/prosper/PPRdefault.sty
Package: PPRdefault 2000/11/30

`default' style for Prosper ---
CVSId: $Id: PPRdefault.sty,v 1.3 2001/10/24 15:11:25 exupery Exp $
 
(/usr/share/texmf/tex/latex/amsfonts/amssymb.sty
Package: amssymb 2002/01/22 v2.2d

(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty
Package: amsfonts 2001/10/25 v2.2f
\@emptytoks=\toks30
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 132.
))
(/usr/share/texmf/tex/latex/seminar/semhelv.sty
Style Option: `semhelv' for the `seminar' doc style 1.4 <2000/05/08> (tvz)
Modified by Stefan (see source for details)
LaTeX Font Info:    Font shape `OT1/helvetica/m/n' will be
(Font)              scaled to size 8.20007pt on input line 176.
))
\c@item@step=\count108
\c@overlay@page=\count109
\c@nbAffected=\count110
\c@savecountAffected=\count111
) (/usr/share/texmf/tex/latex/graphics/color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)

(/usr/share/texmf/tex/latex/config/color.cfg
File: color.cfg 2001/08/31 v1.1 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: dvips.def on input line 125.

(/usr/share/texmf/tex/latex/graphics/dvipsnam.def
File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.159   \definecolor{black}{gray}{0}
                                    
? 
) (./tst3.aux)
\openout1 = `tst3.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 4.
LaTeX Font Info:    ... okay on input line 4.
Package hyperref Info: Link coloring OFF on input line 4.
 (/usr/share/texmf/tex/latex/hyperref/nameref.sty
Package: nameref 2001/01/27 v2.19 Cross-referencing by name of section
\c@section@level=\count112
)
LaTeX Info: Redefining \ref on input line 4.
LaTeX Info: Redefining \pageref on input line 4.
 (./tst3.out)
(./tst3.out)
\openout3 = `tst3.out'.


! Use of \color doesn't match its definition.
\@textcolor ...3->\protect \leavevmode {\color #1{
                                                  #2}#3}
l.5 \textcolor{blue}{Blue Text}
                               
? 
! Too many }'s.
\@textcolor ...otect \leavevmode {\color #1{#2}#3}
                                                  
l.5 \textcolor{blue}{Blue Text}
                               
? 
[0

] (./tst3.aux)

 *File List*
 prosper.cls    2003/03/20, v. 1.6
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2001/08/31 v1.1 graphics configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
 seminar.cls    1997/10/13, 1.4
 article.cls    2001/04/21 v1.4e Standard LaTeX document class
   leqno.clo    1998/08/17 v1.1c Standard LaTeX option (left equation numbers)
  size10.clo    2001/04/21 v1.4e Standard LaTeX file (size option)
sem-page.sty    
semcolor.sty
pstricks.tex
semlayer.sty
 seminar.bug
 seminar.bg2
seminar-bg2-lepennec.fix
hyperref.sty    2003/01/22 v6.73n Hypertext links for LaTeX
  pd1enc.def    2003/01/22 v6.73n Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
     url.sty    1999/03/28  ver 1.5x  Verb mode for urls, etc.
  hdvips.def    2003/01/22 v6.73n Hyperref driver for dvips
 pdfmark.def    2003/01/22 v6.73n Hyperref definitions for pdfmark specials
PPRdefault.sty    2000/11/30
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
 semhelv.sty    
   color.sty    1999/02/16 v1.0i Standard LaTeX Color (DPC)
   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
 nameref.sty    2001/01/27 v2.19 Cross-referencing by name of section
    tst3.out
    tst3.out
 ***********

 ) 
Here is how much of TeX's memory you used:
 4045 strings out of 95370
 52181 string characters out of 1188185
 114375 words of memory out of 1000001
 7080 multiletter control sequences out of 10000+50000
 4246 words of font info for 15 fonts, out of 500000 for 1000
 198 hyphenation exceptions out of 1000
 37i,5n,28p,206b,166s stack positions out of 1500i,500n,5000p,200000b,5000s

Output written on tst3.dvi (1 page, 2356 bytes).

Reply to: