Latest news 2024-07-03: Ebook sale (1st – 31st July 2024): short story cybercrime fiction Unsocial Media free; short story cybercrime fiction Smile for the Camera free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

Exercise 18: Creating Sub-Figures (Solution)

This is the solution to Exercise 18.




\title{A Simple Document}




A brief document to
illustrate how to use \LaTeX.


\section{The First Section}

This is a simple \LaTeX\ document.
Here is the first paragraph.
The next chapter is Chapter~\ref{ch:another}
and is on page~\pageref{ch:another}.
The next section is Section~\ref{sec:next}.

\section{The Next Section}

Here is the second paragraph\footnote{with a footnote}. 
As you can see it's a rather short paragraph, but not 
as short as the previous one. This document was 
created on: \today\ at \currenttime.

\chapter{Another Chapter}

Here's another very interesting chapter.
See Chapter~\ref{ch:intro} for an 
introduction. Our picture has turned
into Figure~\ref{fig:shapes}.

\caption{Some shapes}

\caption{Two Shapes}

Figure~\ref{fig:shapes2} shows some more shapes.
Figure~\ref{fig:rectangle} is a rectangle and
Figure~\ref{fig:circle} shows a circle.

Or: Figure~\ref{fig:shapes2} shows: (\subref{fig:rectangle})
a rectangle and (\subref{fig:circle}) a circle.

\chapter{Recommended Reading}

For a basic introduction to \LaTeX\ see Lamport~\cite{lamport94}.
For more detailed information about \LaTeX\ and
associated applications, consult Kopka and Daly~\cite{kopka95}
or Goossens \emph{et al}~\cite{goossens94}.


I would like to acknowledge all those
very helpful people who have assisted
me in my work.


We will turn this tabular environment into a table later.

 & \multicolumn{2}{c}{\bfseries Expenditure}\\
 & \multicolumn{1}{c}{Year1} & \multicolumn{1}{c}{Year2}\\
\bfseries Travel & 100,000 & 110,000\\
\bfseries Equipment & 50,000 & 60,000

\bibitem{goossens94} ``The \LaTeX\ Companion'', Michel Goossens, Frank Mittelbach and
Alexander Samarin, Addison-Wesley, (1994).

\bibitem{lamport94} ``\LaTeX\ : a document preparation system'', Leslie Lamport,
2nd edition (updated for \LaTeX2e), Addison-Wesley (1994).

\bibitem{kopka95} ``A Guide to \LaTeX2e: document preparation for beginners
and advanced users'', Helmut Kopka and Patrick W. Daly, Addison-Wesley (1995).


© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Cookies Site Map FAQs