Otherwise, unexpected results might occur. This needs to be set before loading the hyperref package. This is for instance needed when using \numberwithin. However, sometimes we need to define some of these options before we can include subsequent packages. Setting big global options such as page margins is best done after loading the packages. Now we can really start including packages, setting options, defining commands etc. This is of course not required for the compiler to work properly, but makes finding things a lot easier. This will once again create more structure in this (plaintext) document. It is typically a good idea to try and make groups of packages (e.g. It is important to set the language in the \documentclass command to make sure all packages use the correct language. Defining the Document Class and Adding PackagesĪfter setting these compiler options, we need to define the type of document (typically book, report or article) and some additional information about the document and language. More info about options that can be set this way can be found here. If we compile using the command line, these two lines will just be ignored. This way, our editor will know it needs to use the XeLaTeX compiler, and not the default compiler ( pdflatex on most systems). In this example, the XeLaTeX compiler is used with a unicode encoding. This is something that is editor dependent, but most editors will recognize the TeXShop way of doing this: Thus we will need some other way to define the compiler and encoding of the document.
![texshop changing font size texshop changing font size](https://i2.wp.com/www.lifewire.com/thmb/zJGiK7HDrCuLJsl9qFTZlilrUWc=/640x640/filters:no_upscale():max_bytes(150000):strip_icc()/gmail-change-default-font-styles-5b16dd82a9d4f900389d2a5f.png)
![texshop changing font size texshop changing font size](https://i2.wp.com/us.simplerousercontent.net/uploads/public/111372/06737f80-d908-46f2-a4f1-4dff817be403.png)
This makes it hard to differentiate between different compilation engines because there is no such thing as a makefile for regular projects (TeX makefiles do exist, but they mainly serve the package writers, not document writers). Getting Started: Absolute Basics Specifying the Compiler package heavy documents), complications can occur. Writing a preamble is not very hard for simple documents, but for larger documents (i.e. In addition to adding more structure to the document, sometimes unexpected behaviour occurs when things are not done in the correct order. This makes setting up the preamble a vital part of every document that is often overlooked. Otherwise we start smearing these definitions over the entire document, which makes finding things harder. Even though one can define commands and set certain options within the document, it is preferred to set options globally.
#Texshop changing font size pdf
It is used to include additional packages, set options, define new macros (commands), add PDF information and more. The preamble is the place where one lays a document’s fundaments.