Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
% Copyright (c) 2015 Karim Belabas.1% Permission is granted to copy, distribute and/or modify this document2% under the terms of the GNU General Public License34% TeX macros for gp's reference card. Based on Stephen Gildea's multicolumn5% macro package, modified from his GNU emacs reference card. Based on an6% earlier version by Joseph H. Silverman who kindly let me use his original7% file.89\def\versionnumber{2.38}% Version of these reference cards10\def\PARIversion{2.14.0}% Version of PARI described on these reference cards11\def\year{2021}12\def\month{April}1314\special{papersize=29.7cm,21cm}1516% ignore parimacro.tex's \magnification setting17\let\oldmagnification\magnification18\catcode`@=1119\def\magnification{\count@}%20\catcode`@=1221\input parimacro.tex22\let\magnification\oldmagnification23\ifPDF24\pdfpagewidth=11.69in25\pdfpageheight=8.26in26\fi2728\newcount\columnsperpage29% The final reference card has six columns, three on each side.30% This file can be used to produce it in any of three ways:31% 1 column per page32% produces six separate pages, each of which needs to be reduced to 80%.33% This gives the best resolution.34% 2 columns per page35% produces three already-reduced pages.36% You will still need to cut and paste.37% 3 columns per page38% produces two pages which must be printed sideways to make a39% ready-to-use 8.5 x 11 inch reference card.40% For this you need a dvi device driver that can print sideways.41% [For 2 or 3 columns, you'll need 6 and 8 point fonts.]42% Which mode to use is controlled by setting \columnsperpage below:43\columnsperpage=34445% You shouldn't need to modify anything below this line.4647\def\version{\month\ \year\ v\versionnumber}4849\def\shortcopyrightnotice{\vskip .5ex plus 2 fill50\centerline{\small \copyright\ \year\ Karim Belabas.51Permissions on back. v\versionnumber}}5253\def\<#1>{$\langle${#1}$\rangle$}54\def\copyrightnotice{\vskip 1ex plus 2 fill55\begingroup\small56\centerline{Based on an earlier version by Joseph H. Silverman}57\centerline{\version. Copyright \copyright\ \year\ K. Belabas}5859Permission is granted to make and distribute copies of this card provided the60copyright and this permission notice are preserved on all copies.6162Send comments and corrections to \<Karim.Belabas@math.u-bordeaux.fr>63\endgroup}6465% make \bye not \outer so that the \def\bye in the \else clause below66% can be scanned without complaint.67\def\bye{\par\vfill\supereject\end}6869\newdimen\intercolumnskip70\newbox\columna71\newbox\columnb7273\def\ncolumns{\the\columnsperpage}7475\message{[\ncolumns\space76column\if 1\ncolumns\else s\fi\space per page]}7778\def\scaledmag#1{ scaled \magstep #1}7980% This multi-way format was designed by Stephen Gildea81% October 1986.82\if 1\ncolumns83\hsize 4in84\vsize 10in85\voffset -.7in86\font\titlefont=\fontname\tenbf \scaledmag387\font\headingfont=\fontname\tenbf \scaledmag288\font\smallfont=\fontname\sevenrm89\font\smallsy=\fontname\sevensy9091\footline{\hss\folio}92\def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}93\else94\hsize 3.4in95\vsize 7.90in96\hoffset -.75in97\voffset -.815in98\font\titlefont=cmbx10 \scaledmag299\font\headingfont=cmbx10 %\scaledmag1100\font\smallfont=cmr6101\font\smallsy=cmsy6102\font\eightrm=cmr8103\font\eightbf=cmbx8104\font\eightit=cmti8105\font\eighttt=cmtt8106\font\eightsy=cmsy8107\font\eightsl=cmsl8108\font\eighti=cmmi8109\font\eightex=cmex10 at 8pt110\textfont0=\eightrm111\textfont1=\eighti112\textfont2=\eightsy113\textfont3=\eightex114\def\rm{\fam0 \eightrm}115\def\bf{\eightbf}116\def\it{\eightit}117\def\tt{\eighttt}118\normalbaselineskip=.8\normalbaselineskip119\normallineskip=.8\normallineskip120\normallineskiplimit=.8\normallineskiplimit121\normalbaselines\rm %make definitions take effect122123\if 2\ncolumns124\let\maxcolumn=b125\footline{\hss\rm\folio\hss}126\def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}127\else \if 3\ncolumns128\let\maxcolumn=c129\nopagenumbers130\else131\errhelp{You must set \columnsperpage equal to 1, 2, or 3.}132\errmessage{Illegal number of columns per page}133\fi\fi134135\intercolumnskip=.45in136\def\abc{a}137\output={%138% This next line is useful when designing the layout.139%\immediate\write16{Column \folio\abc\space starts with \firstmark}140\if \maxcolumn\abc \multicolumnformat \global\def\abc{a}141\else\if a\abc142\global\setbox\columna\columnbox \global\def\abc{b}143%% in case we never use \columnb (two-column mode)144\global\setbox\columnb\hbox to -\intercolumnskip{}145\else146\global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}147\def\multicolumnformat{\shipout\vbox{\makeheadline148\hbox{\box\columna\hskip\intercolumnskip149\box\columnb\hskip\intercolumnskip\columnbox}150\makefootline}\advancepageno}151\def\columnbox{\leftline{\pagebody}}152153\def\bye{\par\vfill\supereject154\if a\abc \else\null\vfill\eject\fi155\if a\abc \else\null\vfill\eject\fi156\end}157\fi158159% we won't be using math mode much, so redefine some of the characters160% we might want to talk about161%\catcode`\^=12162%\catcode`\_=12163%\catcode`\~=12164165\chardef\\=`\\166\chardef\{=`\{167\chardef\}=`\}168169\hyphenation{}170171\parindent 0pt172\parskip 0pt173174\def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}175176\outer\def\newcolumn{\vfill\eject}177178\outer\def\title#1{{\titlefont\centerline{#1}}}179180\outer\def\section#1{\par\filbreak181\vskip 1ex plus .4ex minus .5ex182{\headingfont #1}\mark{#1}%183\vskip .5ex plus .3ex minus .5ex184}185186\outer\def\subsec#1{\filbreak187\vskip 0.07ex plus 0.05ex188{\bf #1}189\vskip 0.03ex plus 0.05ex190}191192\newdimen\keyindent193\def\beginindentedkeys{\keyindent=1em}194\def\endindentedkeys{\keyindent=0em}195\endindentedkeys196197\def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows198199\newbox\libox200\setbox\libox\hbox{\kbd{M-x }}201\newdimen\liwidth202\liwidth=\wd\libox203204\def\li#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize205{\hskip\keyindent\relax#1\hfil}%206\hskip -\liwidth minus 1fil207\kbd{#2}\hfil}}208209\def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad210&\kbd{#3}\quad\cr}211212\def\mod{\;\hbox{\rm mod}\;}213\def\expr{\hbox{\it expr}}214\def\seq{\hbox{\it seq}}215\def\args{\hbox{\it args}}216\def\file{\hbox{\it file}}217\def\QQ{\hbox{\bf Q}}218\def\MM{\hbox{\bf M}}219\def\ZZ{\hbox{\bf Z}}220\def\PP{\hbox{\bf P}}221\def\RR{\hbox{\bf R}}222\def\FF{\hbox{\bf F}}223\def\CC{\hbox{\bf C}}224\def\deg{\mathop{\rm deg}}225\def\bs{\char'134}226\def\pow{\^{}\hskip0pt}227\def\til{\raise-0.3em\hbox{\~{}}}228\def\typ#1{\kbd{t\_#1}}229230%%%%%%%%%%%%%%%%%%%%%%%231232\title{\TITLE}233\centerline{(PARI-GP version \PARIversion)}234235236