[texhax] businesscard.tex
bill purvis
bil at beeb.net
Sat May 13 16:27:08 CEST 2006
I've tried using Tom's business card file, and had a bit of a problem.
I've narrowed it down to an interaction between packages pst-node and color.
A cut-down version shows the problem:
\documentclass{article}
....
\usepackage{graphics}
\usepackage{pst-node} % allows using PSTricks!! Remove if you don't have it.
\usepackage{color}
....
This produces an error on my system (tetex as distributed with Mandriva 10.1):
.....
(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v97 patch 14 <1999/12/23> (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.con)))) (./color.sty
(/usr/share/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf/tex/latex/graphics/dvipsnam.def)
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.164 \definecolor{black}{gray}{0}
.....
I got around it by commenting out the '\usepackage{color}' and it
work fine, but I wanted to use color so I tried to figure out what was
going wrong. After downloading the latest version of the 'color'
package from CTAN I found no improvement, but then I thought maybe
it's an interaction between packages, so I commented out the pst-node
line and it works fine. I ended up reversing the order of the two
\usepackage lines and found that it works OK that way round.
I presume that it worked OK for Tom, so what is going on here?
Bill
--
+---------------------------------------+
| Bill Purvis, Amateur Mathematician |
| email: bil at beeb.net |
| http://bil.members.beeb.net |
+---------------------------------------+
More information about the texhax
mailing list