Printing and Saving Schemes

 

This appendix explains:
  1. How to print your schemes on the printer.
  2. How to export your schemes in various graphical formats.
  3. How to incorporate these saved files into wordprocessing packages such as Latex or MS Word.

Printing Diagrams

At present, printing support in Tcl/Tk is primitive. All we can do is save the diagram as a postscript file and try to send this file to the printer. This is only possible in some cases:

If the "Print Canvas" button works for you, the program should send the whole structure directly to the printer. if the diagram is larger than a single page, it will be printed over several pages.

If the "Print Canvas" button doesn't work for you, there are several solutions:

  1. Downgrade Tcl/Tk: If you are a Windows user, uninstall Tcl/Tk and install version 8.2, which supports printing. See the Tcl/Tk website mentioned in section 2.
  2. Indirect Printing: Otherwise, you might try saving the diagram as a postscript file (hitting the "Save PS" button). You can then print this file (see below). Note however, that the structure is written to the PS file as a single page, so structures spanning multiple pages cannot be printed in this way. I am still looking for a solution to this problem.
  3. Saving in other format and printing from application: as described below, you can save the diagram as a PDX diagram, which MayuraDraw can deal with. Using Mayura (Windows only), you can then re-export the diagram as either WMF (windows meta file), PDF, EPS, AI (Adobe Illustrator), etc. You may have an application which can read in one of these formats, and deal with it intelligently (i.e., multi-page printing). I don't know of one yet, but I don't own commercial software.
    Note that for printing a single-page diagram, exporting as PDF and printing that is a good option for all platforms.

Exporting schemes in various graphical formats

As mentioned above, the Systemic Coder allows you to export diagrams in two formats (PS and PDX), and one of these (PDX) can in turn be saved as a number of other formats (Windows only at present).

Saving PS Files

To save a postscript version of the scheme diagram, select "Save EPS" from the "Scheme" menu. You will be asked for a place to save the file.

The PS file can be sent to a printer (under Unix: "lpr <filename>"). Alternatively, it can be inserted into Latex or Microsoft Word (perhaps other word processing packages also) and printed as part of that document. See below for details.

Some people report that the PS file saved by the Coder is truncated to the right. However, I don't think the files are truncated, rather, Ghostview (a viewer for postscript files) only shows the first print page of the diagram. If you resize the page larger, you can see more of the diagram.

However, I still don't know how to print these files over multiple pages.

Saving PDX Files

To save a PDX version of the scheme diagram, select "Save PDX" from the "Scheme" menu. You will be asked for a place to save the file.

Once saved, the PDX file can be loaded using Mayura Draw (obtain from here). Using this package you can:

Wider networks seem to be truncated once loaded into Mayura, but this is a bug in the display, rather than in the file. If you export the diagram and insert into MS Word (see below) you can see the whole diagram.

See the "Export" option under Mayura's "File" menu. The useful options here are: WMF and EPS (for inclusion in MS Word documents, PDF (for distribution to other people), and maybe AI (Adobe Illustrator).

Telling PDX which font to use: Font names used in PDX files are different than those used in Tcl/Tk. If your fonts seem to be wrong, you can tell Mayura which fonts to use. There is a file in Library/FONT_MAP which states which PDX font to use for which TCL font.

  1. Finding out the Tcl/Tk name of your font: Select "Appearance Options" from the "Options" menu. Your Current font name will be displayed, e.g., "MS Sans Serif".
  2. Finding out the name of the font in PDX: Open Mayura Draw. Select "Font..." from the "Text" menu, and you will see a list of font names. Select one, and copy the name to the clipboard.
  3. Open the Coder/Source/Library, and edit the file "FONT_MAP". add a line like the ones already there, e.g.,

    MS Sans Serif: TimesNewRomanPSMT

  4. Save the file.
The new font should be used in your pdx files from then on.


Including Diagrams in your Documents

Once you have your diagram saved as a file, you can include it in other documents, for instance, academic papers.

Sharing Analyses with other people

The CD2 format (Saved codings file) is easily distributable, but they need the program.