Your support for our advertisers helps cover the cost of hosting, research, and maintenance of this document
Formatting Information — An introduction to typesetting with LATEX
Chapter 2: Basic structures
In this chapter…
The Quick Start exercise in § 1.4 above was enough to show how a simple LATEX document works. Now we’re going to start looking at how a larger document is put together. If you skipped the whole of Chapter 1 ‘Writing documents’ above, be prepared to go back to some of the sections in it, because I’ll be referring to things you might not have come across yet.
LATEX’s approach to formatting is based on consistency. This means that as long as you identify each component of your document correctly, it will be typeset according to the conventions of the document class you have selected, in the same way as all the other components like it, so that you achieve a consistent finish with minimum effort.
Consistency helps make documents easier to read and understand, as well as making them more visually attractive. Consistency is also what editors, reviewers, and publishers look for. Publishers have a house style, and often a reputation to keep, so they rightly insist that if you do something a certain way once, you should do it the same way each time, and not keep chopping and changing.
The component parts of a document are called elements: all the pieces which make up the whole. Almost everyone who reads will be familiar with the common element types: books, reports, articles, parts, chapters, sections, subsections, headings, titles, subtitles, paragraphs, lists, tables, figures, sidebars, panels, notes, exercises, links, cross-references, bibliographies, indexes, and so on, even if they don’t consciously think about them.
Most of these are already built into LATEX in a styling suitable for drafts — it’s best to go with these to start with, as they are easy to modify later without having to change anything in your document text. LATEX gets the styles and some additional element type names from the document class which you specify in the first line of your LATEX document.