1
0
Fork 0

Short documentation on scripting languages

This commit is contained in:
Joris van der Hoeven 2011-08-29 17:28:14 +00:00
parent 9bfe24cb98
commit 29aa8e4db9
2 changed files with 50 additions and 1 deletions

View File

@ -9,7 +9,8 @@
extern systems. For computer algebra systems or other scientific extern systems. For computer algebra systems or other scientific
computation systems, this is typically done in shell-like sessions, in computation systems, this is typically done in shell-like sessions, in
which it is possible to evaluate commands and display the results in a which it is possible to evaluate commands and display the results in a
nice, graphical way. nice, graphical way. Some systems can also be used more in the background
as scripting languages.
See <menu|Help|Plugins> for a list of extern systems to which <TeXmacs> has See <menu|Help|Plugins> for a list of extern systems to which <TeXmacs> has
been interfaced and more documentation on these specific interfaces. been interfaced and more documentation on these specific interfaces.
@ -20,6 +21,8 @@
<branch|Editing sessions|man-session-edit.en.tm> <branch|Editing sessions|man-session-edit.en.tm>
<branch|Selecting the input method|man-session-input.en.tm> <branch|Selecting the input method|man-session-input.en.tm>
<branch|Scripting languages|man-scripting-language.en.tm>
</traverse> </traverse>
<tmdoc-copyright|1998--2002|Joris van der Hoeven> <tmdoc-copyright|1998--2002|Joris van der Hoeven>

View File

@ -0,0 +1,46 @@
<TeXmacs|1.0.7.11>
<style|tmdoc>
<\body>
<tmdoc-title|Plugins as scripting languages>
<TeXmacs> provides a few other kinds of additional interfaces to external
systems in addition to shell-like interfaces. First of all, it is possible
to insert a so called ``executable switch'' anywhere in the document using
<menu|Insert|Fold|Executable>.
For instance, if <name|Maxima> is installed on your system, then
<menu|Insert|Fold|Executable|Maxima> should yield something like
<script-input|maxima|default||>. You may enter a<nbsp><name|Maxima>
expression in the yellow part of this markup, say
<script-input|maxima|default|diff(x^x,x)|>. Using <shortcut|(kbd-return)>,
you may now switch back and forth between the unevaluated input and the
evaluated output <script-output|maxima|default|diff(x^x,x)|<math|x<rsup|x>*<around*|(|log
<around*|(|x|)>+1|)>>>. This kind of executable switches are very useful
for plugins such as <name|Dra<TeX>>, <name|Eukleides>, <name|Feynmf>,
<abbr|etc.>, which are mainly used for the efficient computation and
insertion of special graphics inside <TeXmacs> documents.
Some plugins such as <name|Maxima> can even be selected as a <em|scripting
language> using <menu|Document|Scripts|Maxima>. When doing so, a special
<menu|Maxima> menu will appear, which allows for many useful operations
directly on formulas. For instance, when putting the cursor inside the
formula <math|1+1> and pressing <shortcut|(kbd-return)> or <menu|Evaluate>,
the formula gets evaluated automatically to yield <math|2>.
<tmdoc-copyright|1998--2002|Joris van der Hoeven>
<tmdoc-license|Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.1
or any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled "GNU Free
Documentation License".>
</body>
<\initial>
<\collection>
<associate|language|english>
</collection>
</initial>