LaTeX

Line Indenting
If you write a new paragraph that should not be indented, use the command \noindent Some text...

Keeping Stuff on the Same Page
\noindent\begin{minipage}{\textwidth} stuff \end{minipage}

A Horizontal Separator Line
\begin{center}\begin{tabular*}{.5\textwidth}{c}\hline\end{tabular*}\end{center}

Sectioning Without Numbering
\section*{Something}

Font Selection
Select a replacement for the default roman font, from this list: bookman - artistic font chancery - ugly slanted font charter - cool font newcent - nice readable font palatino - nice soft font times   - good old times zapfchan - ugly slanted font

\usepackage{charter}

Vectors
Here is a command for defining a vector \newcommand{\vect}[2]{\begin{bmatrix}#1\\#2\end{bmatrix}} So the code \vect{x}{y} = \vect{x_0}{y_0} + t \vect{1}{1} results in $$\begin{bmatrix}x\\y\end{bmatrix} = \begin{bmatrix}x_0\\y_0\end{bmatrix} + t \begin{bmatrix}1\\1\end{bmatrix}$$

\newcommand{\Z}{\mathbb{Z}} % formatting: \newcommand{\vf}[1]{\mathbf{#1}} \renewcommand{\sf}[1]{\mathsf{#1}}

Inkscape to PDF
Fitting page to drawing:


 * Draw a bounding box around your drawing. Select the box.
 * Enter Document Properties (Ctrl+Shift+D). In the 'Page' tab, press 'Fit page to selection'.
 * Remove the bounding box.

The PDF export from Inkscape currently ignores the page size. Therefore, the preferred way of importing Inkscape drawings is saving them as SVG and converting them using ImageMagick.

Transparency doesn't seem to work.

LaTeX code: \begin{figure} \centering \includegraphics[width=.7\textwidth]{drawing.pdf} \caption{hello}\label{fig:pic} \end{figure}

Source Code
preamble: \usepackage{fancyvrb} LaTeX code: \begin{figure} \centering \begin{BVerbatim}[fontsize=\small,frame=single] print "hello verb" \end{BVerbatim} \caption{hello.py}\label{fig:hello.py} \end{figure}

Raster Image Into PDF
PNG image: $ convert pic.png pic.pdf LaTeX code: \begin{center} \begin{figure} % ... or table, same syntax \includegraphics[width=.5\textwidth]{pic.pdf} \caption{hello}\label{fig:pic} \end{figure} \end{center}

Multi-Column Figures and Tables
use  and