Tuesday, December 28, 2010

footnote

\renewcommand{\thefootnote}{\arabic{footnote}}
Arabic numerals, e.g., 1, 2, 3...

\renewcommand{\thefootnote}{\roman{footnote}}
Roman numerals (lowercase), e.g., i, ii, iii...

\renewcommand{\thefootnote}{\Roman{footnote}}
Roman numerals (uppercase), e.g., I, II, III...

\renewcommand{\thefootnote}{\alph{footnote}}Alphabetic (lowercase), e.g., a, b, c...

\renewcommand{\thefootnote}{\alph{footnote}}Alphabetic (uppercase), e.g., A, B, C...

\renewcommand{\thefootnote}{\fnsymbol{footnote}}
A sequence of nine symbols (try it and see!)

Saturday, December 18, 2010

SVN Issues

Add a directory remotely


svn mkdir svn-url/dirname

svn Rename Repository

svnadmin create /path/to/new/repository/<new-repo-name>
svnadmin dump /the/path/to/old/repository/<old-repo-name> > old-repo.dump
svnadmin load /the/path/to/new/repository/<new-repo-name> < old-repo.dump

Tuesday, December 14, 2010

Type 1 Fonts

pdflatex

Converting after pdflatex.

Usage: embedfont <filename>

gs -sDEVICE=pdfwrite -q -dBATCH -dNOPAUSE -dSAFER -dPDFX \
    -dPDFSETTINGS=/prepress -sOutputFile=$1_embed -f $1 \
    -c quit
mv $1_embed $1


Latex:
latex myPaper
dvipdfm -p letter -o <myPaper>.pdf <myPaper>.dvi
dvips -P pdf -t letter -o <file>.ps <file>.dvi

latex myPaper dvips -Ppdf -o myPaper.ps -t letter myPaper.dvi
ps2pdf -dPDFSETTINGS=/printer -dCompatibilityLevel=1.3 - dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sPAPERSIZE=letter myPaper.ps



Install Printer on Ubuntu in Siebel Center

Manually adding the print queue for self managed machines

Almost every version of Linux has slightly different GUI capabilities but the following setup should work for most systems that use CUPS printing backend.
  • Determine if the desired printer has finishing capabilities (stacker, stapler, punch). If it does download the ppd file marked finisher otherwise download the ppd file marked no finisher. If you use the wrong one, you will not be able to use the stacker, stapler, or punch.
    dell7330dn-finisher.ppd

    dell7330dn-nofinisher.ppd

     
  • For printing to the Dell 7130cdn color printer in 2302SC use this ppd file.
    dell7130cdn.ppd  
  • Printer in Room 4323:
    4323 SC dcs-printer-4323 Dell 7330dn General Use stacker, stapler, hole-punch
  • Commands: run the commands below (might be in /usr/sbin or /sbin depending on the system, or accept might be called cupsaccept depending on the version of linux)
cp  dell7330dn-finisher.ppd /etc/cups/ppd/dcs-printer-4323.ppd

/usr/sbin/lpadmin -p dcs-printer-4323 -P /etc/cups/ppd/dcs-printer-4323.ppd -o printer-is-shared=false -o printer-error-policy=abort-job -o job-sheets-default=none -o sides=two-sided-long-edge -o wrap=true -o prettyprint=true -v lpd://dcs-print.cs.uiuc.edu/dcs-printer-4323

/usr/sbin/accept dcs-printer-4323

/usr/sbin/cupsenable dcs-printer-4323

Source: https://agora.cs.illinois.edu/display/tsg/Printing+Copying+and+Scanning