



You can add a button to any toolbar, with one of the methods indicated
in the documentation of assistant AsTeX (button Assist. AsTeX of the
toolbar). As an exercise, let's add a button
(a+b)^2 to the Jacal toolbar just before the button factor (Fig. 7.7) by copying /
pasting from the button of Pari then adapting the syntax :
- Open the group of toolbars Alg-2 then the toolbar
Alg\Pari.
- Open the box of options of the assistant by clicking on
and select the tab Toolbar.
- Click on the button (a+b)^2 of the Pari toolbar, then on the button
Copier of the box of options of the assistant, in order to copy the button
(a+b)^2 into the assistant's clipboard.
- Open the group of toolbars Alg-1 then the toolbar of Jacal.
- Click on the button factor of this toolbar to select the place where to
paste the button.
- Click on the button Coller (Paste) of the box of options of the assistant,
to paste the button (a+b)^2 to the selected place, over the button factor
.
- Click on the button 1+2 , and select with the mouse everything that
follows the 2, in the field Commande envoyée (Command sent) (i.e. the
chain
;{ENTER}^{ENTER} that is required to finish a command of Jacal),
and copy it with the right button of the mouse in the clipboard of
Windows.
- Click on the button (a+b)^2 and select, in the field Commande
envoyée of the box of options, everything that follows the 2 (i.e. the chain
{ENTER}^c^c that is required to finish a command of Pari). Replace it
with the end of command of Jacal, by clicking with the right button of
the mouse on the selected chain and then by clicking on the option Coller
(Paste) of the floating menu of edition.
- Save the new button by clicking on the button Sauver of the box of
options of the assistant.
- Close the box of options, launch Jacal in a shell of Emacs and test the
new button.
- Quit Jacal by clicking on the button Quitter of the toolbar of Jacal,
then close Emacs with its option File / Exit Emacs.



