Wednesday, February 25, 2009

LaTeX tips

Some predefined colors in color package are red, green, blue, cyan, magenta, yellow, black, white and gray.

\renewcommand{baselinestretch}{1.25}

\setcounter{tocdepth}{2} causes some depth of titles not to be displayed in the content

\usepackage{cite} makes [1], [2], [3], [4] be displayed as [1]-[4]

\usepackage[sort&compress]{natbib} makes [1], [2], [3], [4] be displayed as [1-4]

For text within math mode, use \text{…}

No command for $\Alpha$ - just use A

For left-hand quote marks, use ``; for right-hand quote marks, use ” or ’’

amsmath and amssymb are common packages.

No comments:

Post a Comment