Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79413 - dev-tex/prosperr files won't compile cleanly w/out tetex color.cfg fix
Summary: dev-tex/prosperr files won't compile cleanly w/out tetex color.cfg fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 19:20 UTC by Scott Little
Modified: 2007-07-12 14:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Little 2005-01-24 19:20:24 UTC
When trying to compile TeX presentations using the prosper package I get 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 be a know problem and can be fixed by adding the following code to the top of /usr/share/texmf/tex/latex/config/color.cfg:
%% http://www.tug.org/pipermail/pstricks/2003/001141.html
%% workaround for a strange bug in color.sty / seminar / prosper
\def\color@gray#1#2{%
\c@lor@arg{#2}%
\edef#1{gray #2}%
}

If this is indeed a problem and not my misunderstanding it would be nice to patch the Gentoo tetex packages with the above fix.

Thanks.

Reproducible: Always
Steps to Reproduce:
1. Create a prosper project.
2. Call latex on the file to build it.
3.

Actual Results:  
I get the following error: 
 
See the LaTeX manual or LaTeX Companion for explanation. 
Type  H <return>  for immediate help. 
 ... 
 
l.159   \definecolor{black}{gray}{0} 

Expected Results:  
Compile the file cleanly w/out the error.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-02-21 05:37:43 UTC
Could you provide an example to test it?
On my laptop I created several prosper tex files without
any errors.
Comment 2 Horst Prote 2005-04-05 02:11:02 UTC
I encountered the same problem. A minimal example is

\documentclass{prosper}
\usepackage{color}
\begin{document}
\textcolor{blue}{Blue Text}
\end{document}

Changing color.cfg as described in #1 fixed it.
Comment 3 keoki 2006-09-15 08:45:49 UTC
I just wanted to add that I see the same problem with tetex 2.0.2-r8 and prosper.  The fix in #1 fixed my problem as well. 
Comment 4 Alexandre Buisse (RETIRED) gentoo-dev 2006-09-16 11:35:42 UTC
Did anyone hit this bug with tetex-3 ?
Comment 5 Horst Prote 2006-12-18 07:36:36 UTC
With tetex-3.0_p1-r3 my example compiles error free.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-07-12 14:27:32 UTC
(In reply to comment #5)
> With tetex-3.0_p1-r3 my example compiles error free.

Closing.