Professional Documents
Culture Documents
Introduction
Agenda
What is LATEX
\usepackage{marvosym}
%% "meta" information and other definitions
\author{M. A. Fiidow}
\title{Hello}
\begin{document}
\maketitle
Hello World! \Smiley
\end{document}
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Typesetting Text
Space and tab characters
1 White space does not (usually) matter
2 TEXdetermines inter-word spacing to ensure legibility
Paragraph breaking
1 Leave a blank line between text to break paragraph
2 Multiple blank lines won’t give more vertical spacing
3 TEXdetermines inter-line spacing to ensure legibility
Manual line- and page-breaking?
1 (are you sure?)
2 TEXdecides where to break lines, pages to ensure legibility
3 if you insist:
\\, \pagebreak
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Typesetting Text
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Special Characters
Introduction Agenda Font Sizes Cross-referencing Other Goodies
ctd
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Font Sizes
Introduction Agenda Font Sizes Cross-referencing Other Goodies
List-like Environments
Introduction Agenda Font Sizes Cross-referencing Other Goodies
\begin{enumerate}
\item Somalia\label{item:som}\begin{enumerate}
\item Mogadishu\label{item:mog}
\begin{enumerate}\item Banadir\label{item:ban}
\begin{enumerate}
\item Hargesa\label{item:Tez}
\item Kismaayo \item Marka
\end{enumerate}\item Jubbada 1 \item Jubbada 2
\end{enumerate}
\item Baraawe
\item Baardheere
\end{enumerate}
\item Galgaduud
\end{enumerate}
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Worksheet Exercise 1
Introduction Agenda Font Sizes Cross-referencing Other Goodies
List-like Environments
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Cross-referencing
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Ctd
\documentclass{article}
\usepackage[utf8]{inputenc}
\pagenumbering{roman}
\begin{document}
\tableofcontents
\section{Testing section}
...
\end{document}
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Ctd
\documentclass{article}
\usepackage[utf8]{inputenc}
\pagenumbering{alph}
\begin{document}
\tableofcontents
\section{Testing section}
...
\end{document}
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Ctd
\documentclass{book}
\usepackage[utf8]{inputenc}
\begin{document}
\frontmatter
\addcontentsline{toc}{chapter}{Foreword}
\Some text...
\addcontentsline{toc}{chapter}{Dummy entry}
Some text...
\tableofcontents
\mainmatter
\chapter{First Chapter}
This will be an empty chapter...
\end{document}
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Ctd
If your document class is not book or you need more control
and the numbering style, see the next example:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\pagenumbering{roman}
\begin{document}
\tableofcontents
\section{First section}
\setcounter{page}{3}
Some text here...
\section{Second section}
Some more text here..
\section{Heading on Level 1 (section)}
\pagenumbering{arabic}
More text here...
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Other Goodies
Introduction Agenda Font Sizes Cross-referencing Other Goodies
Worksheet Exercise 2