summaryrefslogtreecommitdiff
path: root/info/beginlatex/src/demo.tex
blob: 2124a92efb7920411f8ad5a75512599e504c195d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
\documentclass[12pt]{article}
\usepackage{mine}
\begin{document}
\tableofcontents
\section{My first document}\label{intro}

This is a short example of a \LaTeX\ document
I wrote on \today. \hspace{2in}
It shows \textit{a few simple
features} of {\Large automated typesetting}, including

\begin{itemize}
\item setting the default font size to 12pt;
\item specifying `article' type formatting;
\item using the Palatino typeface;
\item adding special formatting for URLs;
\item formatting a heading in `section' style;
\item using the \LaTeX\ logo;
\item generating today's date;
\item formatting a list of items;
\item centering and italicizing \begin{inparaenum}[\itshape a\upshape)]
\item Indian food is available from
  any Indian\index{food!Indian} restaurant. There are many of
  these in Cork and elsewhere.
\item You get Italian food in
  Italian\index{food!Italian} restaurants
\end{inparaenum};
\item autonumbering the pages \footcite{mathguide}
\end{itemize}

\begin{figure}
\caption{Example diagram}
\label{blah}
\begin{center}
\includegraphics[width=3in]{diagram}
\end{center}
\end{figure}

\subsection{More information}

This example was taken from `Formatting
Information' (see Figure~\ref{blah} on
p.\pageref{blah} of \S\ref{intro}), which you can download from
\url{http://www.ctan.org/tex-archive/info/beginlatex/peter/flynn/ucc/demo/blah}
and use as a teach-yourself guide. You can
type the \verb`\section{boo}`
command\index{verbatim text}

\begin{verbatim}
\itshape Have a nice day!
Where do you want to go tomorrow?
\end{verbatim}

\bibliographystyle{jurabib}
\bibliography{beginlatex}

\printindex
\end{document}