|predefined PG constants||topic started 2/19/2001; 11:32:00 AM
last post 2/20/2001; 11:00:43 AM
|Michael Gage - Re: predefined PG constants
2/20/2001; 11:00:43 AM (reads: 1174, responses: 0)
The list of defined constants is here:
(I'll also try to make a more prominent link to this information, but I won't be able to do that right away.)
For a US dollar sign use
DOLLAR() a dollar sign
We use MODES() to define $DOLLAR appropriately for each displayMode. You can see how this works by looking inside PGbasicmacros.pl at the subroutine DOLLAR().
Note that in a macro.pl file (as opposed to a .pg file) the backslash is NOT protected. These are pure perl files with no preprocessing. This means that in a macro.pl file every TeX command has to begin with a double backslash, but also that one can use the backslash as in perl (~~ is not defined in pure perl).
(This is a minor headache if you first define a subroutine in a problem.pg file and then later transfer it to a macro.pl file. You will need to replace all backslashes with double backslashes and all occurences of ~~ with a single backslash. The reasoning behind this design is that while in a problem file you use TeX as much or more than perl, in a macro file you use perl more than TeX. Constantly having to use double backslashes in a problem file was a major source of frustration.)