1. Some tools to generate the eps files.
a. ImageMagick and GraphicsMagick
The ImageMagick, program convert can convert a BMP, CGM, FIG, FITS, GIF, JPG, PBM, PDF, PGM, PNG, PNM, PPM, PS, RGB, TIF, XBM or XPM file to EPS format.
b. jpeg2eps
Wide figures in two column documents
If you are writing a document using two columns (i.e. you started your document with something like \documentclass[twocolumn]{article}), you might have noticed that you can't use floating elements that are wider than the width of a column (using a LaTeX notation, wider than 0.5\textwidth), otherwise you will see the image overlapping with text. If you really have to use such wide elements, the only solution is to use the "starred" variants of the floating environments, that are {figure*} and {table*}. Those "starred" versions work exactly like the standard ones, but they will be as wide as the page, so you will get no overlapping.
A bad point of those environments is that they can be placed only at the top of the page or on their own page. If you try to specify their position using modifiers like b or h they will be ignored. Add \usepackage{stfloats} to the preamble in order to alleviate this problem with regard to placing these floats at the bottom of a page, using the optional specifier [b]. Default is [tbp]. However, h still does not work.
To prevent the figures from being placed out-of-order with respect to their "non-starred" counterparts, the package fixltx2e [2] should be used (e.g. \usepackage{fixltx2e}).
\wide?
using figure* environment.
c. inserting subfigs
Subfloats
A useful extension is the subfig package [3], which uses subfloats within a single float. This gives the author the ability to have subfigures within figures, or subtables within table floats. Subfloats have their own caption, and an optional global caption. An example will best illustrate the usage of this package:
\usepackage{subfig}
\begin{figure}
\centering
\subfloat[A gull]{\label{fig:gull}\includegraphics[width=0.3\textwidth]{gull}}
\subfloat[A tiger]{\label{fig:tiger}\includegraphics[width=0.3\textwidth]{tiger}}
\subfloat[A mouse]{\label{fig:mouse}\includegraphics[width=0.3\textwidth]{mouse}}
\caption{Pictures of animals}
\label{fig:animals}
\end{figure}
d. The dia is a good tool to generate the vector-based figs.
Monday, June 21, 2010
Thursday, June 17, 2010
backup
create the exclude file list:
sudo rsync -Pa / /media/youbackupdir --exclude=/media/* --exclude=/lib/* --exclude=/sys/* --exclude=/tmp/* --exclude=/proc/* --exclude=/mnt/* --exclude=/home/ye/.mozilla/* --exclude = ...
Also, you need to create a cron job to run every day.
find . -size +30M -print -exec ls -l {} \;
comm can be used to compare the difference between two files
sudo rsync -Pa / /media/youbackupdir --exclude=/media/* --exclude=/lib/* --exclude=/sys/* --exclude=/tmp/* --exclude=/proc/* --exclude=/mnt/* --exclude=/home/ye/.mozilla/* --exclude = ...
Also, you need to create a cron job to run every day.
find . -size +30M -print -exec ls -l {} \;
comm can be used to compare the difference between two files
Saturday, June 12, 2010
io redirection
1. writing stderr and stdout seperately
make 1>a.out 2>b.out
2. only get the stdout
make > tmp.out
3. only get the stderr
make > tmp.out 3>&2 2>&1 1>&3 (3 is a descriptor for holding place)
4. put both to files
make > tmp.out 2>&1
& is used when both the src & dest are descriptors
make 1>a.out 2>b.out
2. only get the stdout
make > tmp.out
3. only get the stderr
make > tmp.out 3>&2 2>&1 1>&3 (3 is a descriptor for holding place)
4. put both to files
make > tmp.out 2>&1
& is used when both the src & dest are descriptors
Subscribe to:
Posts (Atom)