On Wed, 18 Nov 1998 [EMAIL PROTECTED] wrote:

> Hi everybody!
> I have 2 questions:
> 1) How do I change the hostname on my local Debian 2.0 machine 
 (I use a modem to dial my ISP, I'm not on a network)
My hostname is stored in the file /etc/HOSTNAME, but I use Slackware 3.5. 

> 2) How do I edit a Postscript file (which app will do the job best?)?
 (I sometimes work under Windows [Using CorelDRAW 8] and I then print 
 my drawing to a file (through a HP postscript printer). The generated .ps
 file can then be inserted in my LaTeX file! But I need to crop the
 postscript file (it's in A4 format and not cropped around my drawing)!

Two suggestions. First, you might consider the drawing tool Xfig, which
runs under Linux. It is a very good drawing tool if you want to make
figures for LaTeX. One way to export a figure is splitting it up in two
files: a LaTeX-part postscript (containing any text or equations etc.
formatted by TeX) and a postscript part postscript file (containing the
lines and other graphic stuff). 
To insert a figure into your TeX doc , do as follows:

\begin{figure}
\input{yourfile.pstex_t}  %this is the latex part ps file
\end{figure}

The postscript part ps file is called from the LaTeX part. You need to
worry about this one, except that they are in the same dir as you doc file
is.

On an other machine running (an older version) of linux Xfig can import ps
files in so you can "edit" them, however, my version doesn't do that.  I
guess it has something to do with Ghostview, but I don't mind, but you
could try it.


Second, in LaTeX you can use includegraphics{}
\begin{figure}
\includegraphics*[10mm,15mm][30mm,27mm]{your-file.eps}
\end{figure}

this will cut out a piece of your org. file lower left corner 10,15 mm to
upper right corner 30,27 mm. If leave  away the * then you get the whole
picture, but its position remains as the clipped one. Try graphpaper to
see acually where your picutre is placed. You can scale it by 
\scalebox{0.5}{
\includegraphics*[10mm,15mm][30mm,27mm]{your-file.eps}}

or

\resizebox{\textwidth}{!}{\include.....}}

scalebox uses a factor, resize box you specify the new dimensions.
Specifiying one and the other as !, then the aspect ratio is kept.

Good luck,

lucas

Reply via email to