Useful Tidbits (that I can never remember)

LaTeX and Adobe Illustrator CS torture

LaTeX

  • To draw a horizontal line: \rule[raise-height]{width}{thickness}
    The arguments are defined as follows:
    raise-height
    specifies how high to raise the rule (optional)
    width
    specifies the length of the rule (mandatory)
    thickness
    specifies the thickness of the rule (mandatory)

XEmacs

  • To delete all lines in XEmacs until the end of the buffer:
    C-> (to push the mark to the end of the buffer)
    C-w (to kill from point to the mark)

Printing

  • Portrait
    • To convert single page to 2 pages per side:
      pstops "2:0L@.7(21cm,0)+1L@.7(21cm,13.00cm)" infile.ps outfile.ps
    • A better command to print book format is:
      pstops "4:0L@.7(21cm,0)+1L@.7(21cm,13.9cm),2R@.7(0cm,27.8cm)+3R@.7(0cm,14.8cm)" in.ps out.ps
  • Landscape
    • For slides and other landscape documents, the corresponding command is:
      pstops -pletter "2:0L@.7(13.9cm,0)+1L@.7(27.8cm,0cm)" in.ps out.ps

Linux

  • To check size of a directory: du -sk <dir-name>
  • To check the partitions and partition types as root: /sbin/fdisk -l <disk-name>
  • To check space on mounted partitions: df

Mutt

  • If you pressed c-x c-s and c-x c-c by mistake, press c-q to recover.

Mac OS X

  • All the printers disappeared again! Oh dear! Whatever shall I do? Relax and try this.

Anupriya Ankolekar
Last modified: Mon Feb 10 17:58:58 EST 2003