ltxprimer-1.0

20

II . T HE D OCUMENT

Indo-Arabic numerals

arabic roman Roman

lowercase Roman numerals upper case Roman numerals lowercase English letters

alph Alph

uppercase English letters The default value is arabic . This command resets the page counter . Thus for example, to number all the pages in the ‘Preface’ with lowercase Roman numerals and the rest of the document with Indo-Arabic numerals, declare \pagenumbering{roman} at the beginning of the Preface and issue the command \pagestyle{arabic} immediately after the first \chapter command. (The \chapter{...} command starts a new chapter. We will come to it soon.) We can make the pages start with any number we want by the command \setcounter{page}{ number } where number is the page number we wish the current page to have. II . 4 . F ORMATTING LENGTHS Each page that L A TEX produces consists not only of a head and foot as discussed above but also a body (surprise!) containing the actual text. In formatting a page, L A TEX uses the width and heights of these parts of the page and various other lengths such as the left and right margins. The values of these lengths are set by the paper size options and the page format and style commands. For example, the page layout with values of these lengths for an odd page and even in this book are separately shown below. These lengths can all be changed with the command \setlength . For example, \setlength{\textwidth}{15cm} makes the width of text 15 cm. The package geometry gives easier interfaces to customize page format. II . 5 . P ARTS OF A DOCUMENT We now turn our attention to the contents of the document itself. Documents (especially longer ones) are divided into chapters, sections and so on. There may be a title part (sometimes even a separate title page) and an abstract. All these require special typo- graphic considerations and L A TEX has a number of features which automate this task. II . 5 . 1 . Title The “title” part of a document usually consists of the name of the document, the name of author(s) and sometimes a date. To produce a title, we make use of the commands \maketitle Note that after specifying the arguments of \title , \author and \date , we must issue the command \maketitle for this part to be typeset. By default, all entries produced by these commands are centered on the lines in which they appear. If a title text is too long to fit in one line, it will be broken automatically. However, we can choose the break points with the \\ command. If there are several authors and their names are separated by the \and command, then the names appear side by side. Thus \title{ document name } \author{ author names } \date{ date text }

Made with FlippingBook Publishing Software