Skip to content

Instantly share code, notes, and snippets.

Created December 29, 2011 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1530605 to your computer and use it in GitHub Desktop.
Save anonymous/1530605 to your computer and use it in GitHub Desktop.
Testing newlablst.sty
\documentclass[12pt]{article}
\usepackage{newlablst}
\begin{document}
\section{Table of Contents}\label{toc}
The \verb-\tableofcontents- command produces table of contents.
\subsection{List of figures\label{list} and Tables}\label{lof}
The commands \verb-\listoffigures- and \verb-\listoftables- produce
list of figures and list of tables, respectively.
\section{Cross Referencing}
You can assign a \textit{key} of your choice to a \verb-figure-, a \verb-table-,
an \verb-equation-, \verb-equation array-, \verb-enumerate-, \verb-theorems-
or a \verb-section-. The key is assigned a number by the \verb-\label- command
and the number is printed by the \verb-\ref- command. For example,
``see section~\ref{toc} for table of contents" can be produced by
\verb-see section~\ref{toc} for table of contents-. \verb-toc- is the key assigned
to section 1 by \verb-\label{toc}-.
\subsection*{labeling words}
You can label a word with a key and refer to it back using \verb-\pageref- command.
For example, the list of figures sub-section appears on page~\pageref{list}.
\begin{thebibliography}{9}
\bibitem{lamport94}
Leslie Lamport,
\emph{\LaTeX: A Document Preparation System}.
Addison Wesley, Massachusetts,
2nd Edition,
1994.
\end{thebibliography}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment