Embedding other external tools into a TeX frame

Introduction
Since version 1.3.5, Scribus knows the frame type "TeX". Frames of this type are normally used to integrate a LateX document into Scribus. But with this function, it is possible to integrate the output of any external program into Scribus. Some prerequisites are necessary:


 * The external program should be a commandline program. It has to take an input file as argument and produces an output file.
 * The output has to be in a format, which is readable by a Scribus image frame. For example, PDF, SVG, JPG, and a lot of other bitmap formats are possible.

To configure Scribus to use an arbitrary external program as input for the TeX frames, open "File / Preferences" and edit the settings for "External Tools". Here, you find the entry "LateX":


 * Delete the text in "Preamble" and "End".
 * Change the command in "Name of Executable" to your needs:
 * Here, you can use the variables "%file" which stands for the input and "%file.pdf" which represents the output file. If your file is not in PDF format and you specify in "Output file extension" an other extension, then use use that extension instead of PDF in the output variable. For example, a PNG file format is refered as "%file.png".
 * Activate the option "Start with empty frame" and delete the content of "Preamble" and "End".
 * You can still use the embedded editor, even for non-LateX code, or an external one, just as you like.



Here are some examples, how external programs can be embedded into Scribus:

ToDo
There are a lot more programs which can be used in this way from inside Scribus. Some examples to try are:


 * PCal (even if Scribus already has a very nice script for generating calendars)
 * MusixTeX for musical notation
 * Skak for typesetting chess games