| Karim Belabas on Sat, 02 Dec 2017 11:42:49 +0100 | 
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: high-level NEWS file? | 
* Sam Steingold [2017-11-29 19:44]:
> >>> ??lex
> 
> this opens a new xdvi window (which is dog-slow and inconvenient on a
> mac). it would be nice to get a browser tab instead (preferably,
> permalinked).
Two options:
1) the one I use (on my dog-slow mac, even opening a browser tab is
inconvenient :-). Add to ~/.gprc something like
  help = "/usr/local/bin/gphelp -detex -utf8 -ch 4 -cb 0 -cu 2"
Update 'gphelp' path to match 'make install' directories. See man gphelp
for details about the remaining arguments.
2) in the Terminal shell
  open http://pari.math.u-bordeaux.fr/dochtml/help/lex
(replace with any GP function...)
The latter is the default help system for online gp at
  https://pari.math.u-bordeaux.fr/gp.html,
it opens a browser tab inside
  https://pari.math.u-bordeaux.fr/dochtml/html/
N.B. You can install the latter as a help plugin inside gp with something like
  help = "/update/this/path/to/custom_gp_help"
in ~/.gprc, with custom_gp_help the following script
  ## ########################################
  #!/usr/bin/perl
  $base= "http://pari.math.u-bordeaux.fr/dochtml/help";
  ($fun = $ARGV[1]) =~ s/\@.*//;
  system("open $base/$fun");
Then ??lex will act as the 'open' command above :-)
Cheers,
    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 21 23
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`