CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.



next up previous
Next: About Unix (General Up: Questions and Answers Previous: About Printing

About Graphics Tools

Question

would very grateful if you could tell me if there are any drawing programs that can run on HP-UX machines. I am here thinking of programs like MacDraw on Macintoshes or Designer on PCs. The purpose of these programs will be as an online documentation tool. E.g. an expert is working in an experimental area and needs a technical drawing of the instrument that he works on. He would then go to his X-terminal and call up the drawing.

Answer

There are public domain and commercial drawing applications on HP.

The public domain applications are usually available on ASIS for most UNIX workstations. You can try for instance xfig or xpaint.

If you need better but commercial applications, you must contact your local HP salesman.

Question

you know of any way to view a metafile on CERNVM from an X-terminal (i.e., an option in GRVIEW) ?

Answer

I assume that by ``metafile'' you mean ``GKS metafile''. Unfortunately there is no way to use GRVIEW for X terminals on any computer, because there is no X-Window driver for GKS/GTSGRAL at CERN. On X terminals/devices you should produce a PostScript file instead of a GKS metafile and use ``ghostview'' to display it. ghostview (public domain software, available on ASIS) is unfortunately not available on CERNVM, but only on UNIX (type man ghostview) or VMS (HELP GHOSTVIEW) machines at CERN. To use GRVIEW you must connect to another kind of graphics terminal (e.g. Falco, Tektronix, etc.).

Question

can I print a PostScript file in landscape format ?

Answer

One solution to this problem is to encapsulate your PostScript file (providing it contains the ``BoundingBox'' instruction, as it usually does) into a LaTeX job, as follows (in this example the PostScript file is called ``xpicon.ps''):

\documentstyle[a4,rotating,epsfig]{article}
\pagestyle{empty}
\begin{document}
\begin{sidewaysfigure}
  \begin{center}
    \epsfig{file=xpicon.ps}
  \end{center}
\end{sidewaysfigure}
\end{document}

Then, to print this file just execute the usual LaTeX commands (available on all central machines, and on ASIS): latex, dvips, and then print the new PostScript file produced with the usual command xprint (or lpr, or lp on UNIX) without any specific option.

The advantage of this method is that you can play, later on, with the size and position of the picture inside the page, with the help of some basic LaTeX commands.



next up previous
Next: About Unix (General Up: Questions and Answers Previous: About Printing



Janne Saarela
Tue May 23 09:56:57 METDST 1995