Sunday, December 30, 2007

Sunday, December 16, 2007

Print PDF files in black and white

Under MAC OSX, adobe reader doesn't allow you to choose whether to print in black&white or in color. Use Preview instead. The steps are as such
1. Print
2. Color Sync
3. Quatz filter: Black & White

Wednesday, December 5, 2007

1. erase all configureations in Cisco routers:
erase start
reload

2. Initial configuration of Cisco routers:
2.1 no ip domain lookup and logging synchronous
2.2 set an ip address on one interface along with the vty password, so that I can telnet myself.
2.3 set "enable secret", keep enabled, telnet myself using the address configured above to test the password.

Tuesday, December 4, 2007

position of boxes in LaTaX

Take one kind of box for example, the minipage box.

\begin{minipage}[position]{width}

There are 3 options for "position" , namely , c, t, b, meaning centre, top and bottom correspondingly.
If 'c' is chosen, the vertical center of the minipage will be aligned to the baseline of the surrounding environment.
If 't' is chosen, the vertical top of the minipage will be aligned to the baseline of the surrounding environment.
If 'b' is chosen, the vertical bottom of the minipage will be aligned to the baseline of the surrounding environment.

Sunday, December 2, 2007

Referencing to a float in LaTeX

With \label and \ref, you can create a reference to a float within
your text. Note that the \label command must come after the \caption
command since you want it to reference the number of the caption.

Saturday, December 1, 2007

Using Chinese in TeXShop

TeXShop is the mac os version of TeXLive.
Using Chinese here is different from that in CTeX. I don't know exactly what happens yet, but I do know one way to use Chinese under TeXShop environment, which is followed:

\usepackage{CJKutf8}
\begin{CJK}{UTF8}{gbsn}
...
\end{CJK}