<TeXmacs|1.99.2>

<style|tmdoc>

<\body>
  <\tmdoc-title>
    <name|Gnuplot> as a document scripting language
  </tmdoc-title>

  You can also use <name|Gnuplot> as a scripting language for the current
  document (see ``Plug-ins as scripting languages'' in the documentation).
  Selecting the menu item <menu|Insert|Fold|Executable|Gnuplot> will produce
  the following output: <script-input|gnuplot|default||>. You may enter any
  <name|Gnuplot> script in the yellow box, e.g.

  <center|<script-input|gnuplot|default|plot
  sin(x)|<image|<tuple|<#[encoded data, 41258 characters]>|ps>|0.7par|||>>>

  Hitting <shortcut|(kbd-return)> inside the box you alternate between the
  unevaluated input and the evaluated output. For more complex scripts, you
  can use <shortcut|(kbd-shift-return)> to enable multi-line input.

  Additionally, after selecting <menu|Document|Scripts|Gnuplot> you may also
  insert <em|executable input fields> using <shortcut|(make-calc-input)> or
  <menu|Insert|Link|Executable input field>. After pressing <key|return>, the
  contents are evaluated and you will see the corresponding output. Pressing
  <key|return> \ again you switch back to the input.

  See the <TeXmacs> documentation for more on this topic.

  <tmdoc-copyright|2014|Miguel de Benito Delgado>

  <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>
</collection>>