parent nodes: ChangeLog2006 | ChangeLog2007 | ChangeLog2008 | WikidPadHelp | WikiExport | WikiStructureGraphs
External Graphical Applications
WikidPad allows access to some graphical applications which take some sort of script to generate images. You can include the script in a wiki and let the applications generate the appropriate image to show it in HTML preview and export.
The supported applications are:
MimeTeX to generate mathematical formulas
GraphViz which is a set of applications to generate directed and nondirected graphs
Ploticus to generate plots and charts (as you might have seen in your favorite spreadsheet program)
Gnuplot to generate mathematical plots
Download and installation
The mentioned applications are not part of the WikidPad release itself, you must download it separately. The URLs are:
A helpful tutorial for creating directed graphs with GraphViz' dot utility is http://kabru.eecs.umich.edu/bin/view/TWiki/HowtoDirectedGraphs.
You can download all or only some of them as you like.
Put the binaries in an arbitrary folder on your computer. If you do not plan to use them outside of WikidPad you can create a folder in the WikidPad installation directory and put them therein.
Now start WikidPad and open the "Options" dialog. Below the "Plugin options" entry in the list on the left you see four entries, each for one of the programs. Clicking on them leads to the appropriate options page.
For MimeTeX, Ploticus and Gnuplot just enter the full path to the executable, for GraphViz only set the path to the directory containing the executables in the first text field. You can change the names of the executables itself in the fields below the first.
Special details about Gnuplot
Unfortunately Gnuplot gives always a warning about a missing console (?) so you either have to use the appendix "noerror" all the time or (on Windows) you set the "wgnuplot.exe" executable in the options which does not issue this warning. In both cases you will be unable to retrieve error messages from Gnuplot if the script isn't right.
At the beginning of each Gnuplot script the following lines are automatically inserted to set output to a PNG-file which is shown then:
set terminal png
set output 'filename.png'
where filename.png is replaced by the chosen temporary file name.
The programs are called using Insertions. The keys for the insertions are:
dot, neato, twopi, circo, fdp: GraphViz
The values must follow the syntax of the respective program, please see the documentation of the applications for details.
The values should be quoted (enclosed by quotation symbols) if they contain special characters or newlines. A quotation symbol is an arbitrary number of one of the quotation characters ", ', / or (double quotation mark, single quotation mark, slash or backslash). The starting and ending symbols must be the same. Examples for quotation symbols are:
When exporting HTML, the rendered image files are put in a subdirectory "volatile" in the same directory where the HTML files are. If "volatile" is already present in the destination directory, all of its contents (including subfolders) are deleted to avoid filling it up with old versions of the files!
If the GraphViz or Ploticus applications return errors or warnings, you see these instead of the rendered images. To suppress warnings/errors use the appendix "noerror" after the main value of the insertion.
If you have downloaded and installed all applications you can see here how the graphics look like:
MimeTeX: You should know that
[Please set path to MimeTeX executable] is important!
GraphViz (Dot, with "noerror" appendix)
[Please set path to GraphViz executables]
[Please set path to Ploticus executable]
[Please set path to Gnuplot executable]
If you want to create your own plugin to handle insertions, look in the "extensions" directory in the WikidPad installation directory. The plugins "MimeTexCGIBridge.py", "GraphvizClBridge.py" and "PloticusClBridge.py" control the external applications. The plugin "ExampleInsertion.py" handles the insertion key "testexample" and is another example how to handle insertions by a plugin.
Value: this 0. appendix: is 1. appendix: a simple 2. appendix: test
[alias: Ploticus][alias: MimeTeX][alias: GraphViz][alias: Gnuplot]