红联Linux门户
Linux帮助

Common Tools Tips in Linux

发布时间:2008-04-23 01:38:16来源:红联作者:Mwany
1. compress/decompress
(1)tar
(2)gzip
(3)bzip2
(3)zip/unzip
2. ftp
(1)lftp
(2)gftp
3. download
(1)wget
4. chm
(1)xchm
5. editors
(1)vim
(2)emacs -nw
(3)gedit
6. dictionary
(1)WordNet
7. pdf
(1)acroread
(2)xpdf
(3)gv
8. programming
(1)gcc
(2)g++
(3)as
(4)java(Sun), ant
(5)make
9. graphics
(1)GIMP
(2)xfig
(3)MetaPost
(4)GNU Plot
10. email client
(1)mutt
11. mount
(1)mount
(2)umount
12. ssh
(1)ssh
13. Inserting and labelling figures
(1)To refer to a figure, use the following syntax:
Amazing results are shown in Figure \ref{fig:Stupendous}.
(2)To insert a figure using the graphics package:
\usepackage{graphicx} % or you might try \usepackage{graphics} or \usepackage[dvips]{graphics}
\begin{figure}
\begin{center}
\includegraphics[height=7in,width=5in,angle=90]{file.eps}
\caption{\small \sl This figure shows results of Nobel prize winning importance.}
\label{fig:Stupendous}
\end{center}
\end{figure}
I've read that you can include a pdf or jpeg file directly using the \includegraphics command.
The source I saw said that if your file is file.jpg, make a file.jpg.bb with the Bounding box line
from the eps version of the jpeg file. Supposedly you can then just do \includegraphics{file.jpg},
but this has not worked when I tried it and compiled with Latex (Latex complained about not being
able to find a bounding box), though I have successfully included pdf files and jpeg files when using
pdflatex and \usepackage[pdftex]{graphics}.
(3)To insert a figure using the psfig package:
\input psfig % in preamble
\begin{figure}
\centering \psfig{file=file.ps,width=5in,height=3in}
\caption{\small \sl This figure shows results of Nobel prize winning importance.}
\label{fig:Stupendous}
\end{figure}
% note that \psfig can be used with eps files
(4)To insert a figure using the epsf package:
\usepackage{epsf} % in preamble
\begin{figure}
\begin{center}
\epsfxsize=6in {\epsfbox{file.eps}}
\caption{\small \sl This figure shows results of Nobel prize winning importance.}
\label{fig:Stupendous}
\end{center}
\end{figure}
(5)Inserting pdf and jpeg figures when using pdflatex works nicely
\usepackage{pdftex}
\usepackage{graphicx}
\begin{figure}
\begin{center}
\includegraphics[scale=0.85]{file.pdf}
# or file.jpg; do not use .jpeg extension (at the least, this causes problems when using Lyx and foiltex)
\end{center}
\end{figure}
(6)With the \begin{figure} command, you can include an argument such as \begin{figure}[htbp].
This tells Latex to try to put the figure first 'here', then at the 'top' of the page, then at the 'bottom'
and finally on the next 'page'. The letters can be in any order you wish and any of them can be left out.
If you put an ! before the first letter, it tells Latex to try really hard to follow your wishes,
e.g., \begin{figure}{!h}.
(7)You may need to make sure Latex knows to only include the clipped portion of the figure (the portion inside the
bounding box). This is the case if you're using a figure imported from powerpoint, for example. The syntax is
\psfig{file=file.ps,clip=}
\epsfbox{file.eps,clip=}
\includegraphics[clip]{file.eps}

100. games
(1)SuperTux
文章评论

共有 0 条评论