[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /pub/os/Linux/distr/CTAN/info/pstdoc/
 
Current bandwidth utilization 197.28 Mbit/s
Bandwidth utilization bar
Contents of README:
This package is distributed under the LaTeX Project Public License.

It provides help with syntax and keywords associated with PSTricks commands. See the screenshot for typical output.

Installation of pstdoc.

Python 2.5 or more recent is required. The database file pstCommands.db must be in the same folder as the Python script pstdoc.py.

Mac:
1. Set up your Terminal Window so that it understands ANSI commands, by setting the following in ~/.profile or ~/.MacOSX/environment.plist.

CLICOLOR=true
TERM=xterm-color
LSCOLORS=exfxcxdxbxegedabagacad

2. Check that your version of Python is recent enough.

3. Rename pstdoc.py to just pstdoc, and copy it to some folder in your PATH. I copied it to ~/bin, along with the SQLite database file pstCommands.db

4. Enter, for example, 
pstdoc \psarc (or just pstdoc psarc)
to get the syntax and all keywords that might apply. Arguments with yellow background are optional. A red double left arrow indicates a default replacement value. Output look better when the Terminal window is twice as wide as normal.

Windows:

Install Python (the MSI version) from ActiveState and restart Windows. You invoke it as

python c:\mybin\pstdoc.py \psarc

after installing pstdoc.py and pstCommands.db in some folder in your PATH---say, C:\mybin. A batch file pstdoc.bat in c:\mybin containing just the line

python C:\mybin\pstdoc.py %1

will allow it to be invoked with 

pstdoc \psarc

The output has no color and no double left arrow character---a left pointing double-angle quote is used instead. The presence of this character indicates that the argument is optional, and spells out the default value.

Linux:

It should work if used in a terminal that understands ANSI color commands.

Apache Web Server:

This is the nicest interface, IMHO.

In the Webserver folder:

Documents <- pstCommands.db, psthelp.css, index.html
CGI-Executables <- parsehelp.py

I keep this running at all times on my Mac OS 10.6.7 (check Web Sharing in System Preferences/Sharing) so that help is available in the browser by browsing to http://localhost.

Icon  Name                           Last modified      Size  
[DIR] Parent Directory - [TXT] README 23-Jun-2011 20:19 2.0K [TXT] index.html 02-Oct-2009 00:47 656 [TXT] parsehelp.py 24-Aug-2009 20:54 4.4K [   ] pstCommands.db 24-Jun-2011 06:10 159K [TXT] pstdoc.py 18-Aug-2009 00:37 2.5K [TXT] psthelp.css 20-Aug-2009 03:58 581 [IMG] screenshot.png 30-Jun-2009 06:02 59K

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!