1GPHELP(1)                   General Commands Manual                  GPHELP(1)
2
3
4

NAME

6       gphelp - GP-PARI online help script
7

SYNOPSIS

9       gphelp  [-to_pod  file] [-raw] [-detex] [-k] [-ch c1] [-cb c2] [-cu c3]
10       [keyword [ @{1,2,3,4,5} ]] [tutorial] [refcard]...
11
12

DESCRIPTION

14       Invokes the PARI-GP online help script. By default, keyword  is  under‐
15       stood  as  a section heading (a GP function name), and gphelp looks for
16       it in Chapter 3 of PARI User's Manual. If it is found, the  correspond‐
17       ing  section  is copied to a temporary file in /tmp (or $GPTMPDIR), TeX
18       is run then the corresponding section is displayed in a  separate  win‐
19       dow, using xdvi (or $GPXDVI).
20
21
22       If more than one keyword is given on a single command line, the outputs
23       are  concatenated.  If  keyword  is  omitted,  open  the  whole  manual
24       users.dvi.   The keywords tutorial and refcard open the GP tutorial and
25       reference card respectively.
26
27       GP defaults, help sections (1 to 11) as well as  some  keywords  (read‐
28       line,  bnf, ell, all operators...) are recognized and treated in a spe‐
29       cial way to make sure they match a section heading. For instance &&  is
30       translated to Comparison and boolean operators which isn't that obvious
31       to guess.  Make sure to enclose keyword between quotes if  it  contains
32       dangerous characters (e.g spaces). For instance, you need to type
33
34              gphelp -k "elliptic curves"
35
36       and not
37
38              gphelp -k elliptic curves
39
40       which  would  look  for  "elliptic"  then  for "curves" and output e.g.
41       ploth among the relevant sections.
42
43

FULL SEARCH: @ MARKERS

45       The pattern @x (where x is a chapter number between 1 and 5) at the end
46       of  keyword conducts the search in the corresponding chapter instead of
47       the default Chapter 3. If the number is omitted, search the whole  man‐
48       ual. For instance
49              gphelp -k gerepile@4
50       will look for gerepile in Chapter 4 of users manual.
51              gphelp -k gerepile@
52       will  search  the  whole  manual.  All  chapters  of  the manual (user‐
53       sch[1-5].tex) are assumed to be in $GPDOCDIR (defaultvaluesetby Config‐
54       ure). You are allowed to gzip (or compress) them, this won't affect the
55       search.
56
57

OPTIONS

59       The following command line options are available:
60
61       -cb, -color_bold c2
62              color used for bold. See -color_help.
63
64
65       -ch, -color_help c1
66              color (between 1 and 16) used for general printing. Only signif‐
67              icant in detex mode.
68
69
70       -cu, -color_underline c3
71              color used for underline. See -color_help.
72
73
74       -detex Use  detex  mode.  The  TeX file is converted to readable screen
75              output that is directly written to the terminal; don't  use  tex
76              or xdvi.
77
78
79       -k     Switch  to  apropos mode. Only write to standard output the list
80              of section headings in manual which contain keyword.
81
82              You can then choose an element in the list and use it  as  argu‐
83              ment  for  gphelp (surround it by quotes if it includes spaces),
84              possibly followed by a trailing @ marker (see above).
85
86
87       -raw   use internal format for output (using @x markers). For debugging
88              only.
89
90
91       -to_pod file
92              try  to  convert  file from TeX to POD format. Will only work on
93              some subset of PARI User's Manual (Chapter 3,  reference  card).
94              This should be the only arguments on the command line.
95
96

ENVIRONMENT

98       COLUMNS
99              number of columns available on screen (for detex mode)
100
101
102       DISPLAY
103              where  to  launch  the  dvi  previewer.  If unset, detex mode is
104              assumed automatically.
105
106
107       GPDOCDIR
108              directory where PARI help files are located. Default  value  set
109              at Configure time.
110
111
112       GPTMPDIR
113              directory where temporary files are written
114
115
116       GPXDVI
117              dvi previewer to use
118
119

FILES

121       gp     the gp calculator
122
123
124       gphelp the gphelp script
125
126
127       users.dvi
128              PARI/GP User's Manual
129
130
131       tutorial.dvi
132              PARI/GP tutorial
133
134
135       refcard.dvi
136              GP reference card
137
138
139       refcard.ps
140              GP reference card, printer ready
141
142

BUGS

144       The  search  algorithm  is  rather  crude  and the data searched rather
145       unstructured. Hence, searching outside of Chapter 3 may not yield  use‐
146       ful results, except in apropos mode (sections may be truncated too soon
147       for instance).
148
149       Multiword search patterns have a tendency to fail due  to  various  TeX
150       constructs in the source.
151
152

AUTHORS

154       Originally  written  by Ilya Zakharevitch for the Math::Pari perl pack‐
155       age.  Rewritten and expanded by Karim Belabas for the main PARI distri‐
156       bution.
157
158

SEE ALSO

160       gp(1), gzip(1), readline(1), tex(1), xdvi(1).
161
162

COPYING

164       This  program  is   free   software;  you  can  redistribute  it and/or
165       modify  it under the terms of the GNU General Public  License  as  pub‐
166       lished by the Free Software Foundation.
167
168       This  program  is  distributed  in the hope that it will be useful, but
169       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
170       CHANTABILITY  or FITNESS FOR  A  PARTICULAR  PURPOSE.  See the GNU Gen‐
171       eral Public License for more details.
172
173       You should have received a copy of the  GNU   General   Public  License
174       along   with  this  program; if not, write to the Free Software Founda‐
175       tion,  Inc.,  675  Mass  Ave,  Cambridge,  MA 02139, USA.
176
177
178
179                                 25 June 1999                        GPHELP(1)
Impressum