Wednesday, January 30, 2008

Extract several pages from one pdf file using pdftk

For example, I want to extract page 32 to page 86 from file 'test.pdf', resulting a 'new.pdf'. A 'cat' operation will be used to tackle this problem.

The example given in the official website is as such:

Split Select Pages from Multiple PDFs into a New Document
pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf


My solution based on that is:
pdftk A=test.pdf cat A32-86 output new.pdf

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.