Contents |
If you write a new paragraph that should not be indented, use the command
\noindent Some text...
\noindent\begin{minipage}{\textwidth}
stuff
\end{minipage}
\begin{center}\begin{tabular*}{.5\textwidth}{c}\hline\end{tabular*}\end{center}
\section*{Something}
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}
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
\newcommand{\Z}{\mathbb{Z}}
% formatting:
\newcommand{\vf}[1]{\mathbf{#1}}
\renewcommand{\sf}[1]{\mathsf{#1}}
Fitting page to drawing:
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}
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}
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}
use \begin{figure*} and \begin{table*}