Time for action – listing LaTeX packages
We shall create a list of packages that we got to know in the previous chapter:
Begin a new document and enter the following code:
\documentclass{article} \begin{document} \section*{Useful packages} LaTeX provides several packages for designing the layout: \begin{itemize} \item geometry \item typearea \item fancyhdr \item scrpage2 \item setspace \end{itemize} \end{document}
Typeset and have a look at the output:
What just happened?
It was not necessary to load any package. We began with a heading followed by some text. For the actual list, we used an environment called itemize
. As we know about environments, \begin{itemize}
starts it and \end{itemize}
ends it. The command \item
tells LaTeX that a new item to the list follows. Each item may contain text of any length and even paragraph breaks. Well, that's pretty easy, isn't it?
Nesting lists
When a list gets longer, we could make it clearer by dividing it. We just create lists in a list. It's...