On 21.07.08, Renton Ian wrote:
> > From: Michael SCHINDLER
> > This can be, but pyx should work nevertheless. We do provide 
> > a fallback solution for users who do not want to install the 
> > proper color.cfg. Note that is is a dirty hack which sets the 
> > default driver to pyx.def, which must exist on all machines. 
> > This file you have to install on the client machines.
> 
> I've just been fiddling with this (trying to get it to work with just
> pyx.def first of all).  Does the hack that lets you use just pyx.def
> have a hard-coded path to it?
> Putting pyx.def in the same directory as
> my py2exe'd executable doesn't work, but putting it in
> C:\Python25\share\pyx\ does.

pyx.def uses some sort of hard-coded path. It searches at
siteconfig.sharedir (which is C:\Python25\share\pyx\ on your system):

  text.py, line 968:
  pyxdef = os.path.join(siteconfig.sharedir, "pyx.def")

> Since I'm py2exe-ing it so that users don't have to install Python, I'd
> rather not have to create a C:\Python25 directory for them!
> 
> Is this a problem that could be solved by using the proper color.cfg?

Yes, of course. Put color.cfg and pyx.def into the directory where pyx
executes LaTeX (or wherever LaTeX finds it). Do not forget to switch
off the "pyxgraphics" option in pyx.text (to deactivate the hack).
Then, you will have to load all packages from the graphics bundle with
the option pyx explicitly:

  text.preamble(r"\usepackage[pyx]{color}"}

see also the documentation at
  http://pyx.sourceforge.net/manual/node26.html


Michael


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to