Here are some frequently used tricks.



Text Position

\documentclass{amsart}
\usepackage[absolute]{textpos}

%% Set the x- and y- units as 1 cm
\setlength{\TPHorizModule}{ 1cm}
\setlength{\TPVertModule}{\TPHorizModule}

%% Put a text box of 14 units length in width
%% with the top left corner at (5,13)
\begin{textblock}{14}(5,13)
Put your text here.
\end{textblock}

\end{document}

Section numbers

How can I make Latex to insert a period after the section and subsection numbers? For example

1. Section
1.1. Subsection
1.1.1. Subsubsection

\makeatletter
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad}
\makeatother

Formats: Rotate a table or figure

How to turn a long table from horizontal to vertical?

 \documentclass{amsart}
\usepackage{rotating}

\begin{document}
 \begin{sideways}
\begin{tabular}{|c|c|c|}
\hline
4 & 3 & 8 \\ \hline
9 & 5 & 1 \\ \hline
2 & 7 & 6 \\ \hline
\end{tabular}
\end{sideways}

\end{document}

You need to covert the dvi page into postscript to see the effect. Yap will not be able to show it. Read the manual of the package.


Math indentation

Change individual math display indentation:

\begin{equation}
\hspace{ 0pt} % necessary for obscure reasons
y = m x + b
\hspace{\linewidth minus\linewidth}
\end{equation}

Page layout

\usepackage[a4paper, text={30pc,50.5pc},top= 3cm,centering]{geometry}

Page reference

To save the page number of the location, put \label{some.name} on that page.  Use \pageref{some.name} whenever it is needed.


Enumeration labels

Use the package enumerate.