next up previous contents index
Next: Node Operations Up: XGinseng Operations Previous: Clear Display

Save As Postscript File

The operation allows you to dump the Display window into a Postscript file which may then be included in a document. Only the visible part of the network inside the inner Display window will be included in the file. Since the entire window (minus the scrollbars, window title, and border) will be included, be sure to resize the Display window so that only the desired nodes and arcs are visible and that the surrounding white space is minimized. Remember that compact window dumps are much easier to included as Postscript files than files with extraneous space.

Performing a Dump: First, resize the Display window to include only the desired nodes and move aside any obscuring windows. Then click the left mouse button on the button in the XGinseng Command window. The following prompt will appear in the dialogue Box: Type the file's name:|

The vertical bar is the cursor for the text editor. Type the name of the Postscript file using commands specified in Section 6.4.2 below titled ``Displaying New Nodes''. When you press the carriage return the mouse cursor will change from its usual appearance to a thin ``plus'' sign. This cursor is the prompt for the X program xwd (for X window dump). Move the cursor over the Display window and click once with the left mouse button. The xwd process will beep once when it starts the dump and twice when it finishes. Wait for the button to return to its normal coloring before proceeding.

Aborting: To abort the operation, click with the right mouse button over the Dialogue Box at anytime before you press the carriage return. The prompt will be removed and the button will be redisplayed in its original coloring.

Including the dump in a LaTeX document: Your Postscript file may be inserted in a LaTeX document by using the tex2html_wrap_inline4707special macro. Usually, a Postscript file is included within a figure environment. The keywords hoffset and voffset control the offset of the figure on the page while hscale and vscale specify scaling factors for the image. Refer to the manual page for texprint for complete details.

For example, the following code was used to generate Figure 6.2:

        \begin{figure}
        \vskip4in
        \special{psfile=fig2.ps hoffset=36 voffset=-11 hscale=40 vscale=40}
        \special{psfile=fig2b.ps hoffset=180 voffset=-11 hscale=40 vscale=40}
        \caption{{\sf The XGinseng Command window (left) and the XGinseng 
        Input Commands  window (right).  The reverse video indicates the command 
        ``Display A Node'' is being executed''}\label{fig2}}
        \end{figure}
The filename that you typed in the Dialogue Box shoulld be inserted as the argument to psfile.

Advisories: The filname that you type in may be any UNIX pathname. If no directory path is specified the file will be created in the directory where the Lisp process was created. Beware that you may inadvertently create window dumps of any X window you happen to click on with the xwd ``plus'' cursor. Take care to click only on the Display window. You may click while the ``plus'' cursor is on any part of the window, but the cursor will not be included in the dump.


next up previous contents index
Next: Node Operations Up: XGinseng Operations Previous: Clear Display

John Francis Santore
Fri May 14 11:18:57 EDT 1999