2. LATEX
•Save (Ctrl+S)
The keyboard shortcuts are included after each command.
These buttons are used for compiling and viewing L
A
T
EX documents. Most of the other
buttons are used for typesetting. See if you can find some of these:
•Bold
•Italic
•Left
•Part/Chapter/Section
•Relation symbols
•Greek Letters
2.2 Building a L
A
T
E
X document
2.2.1 Before you start
You will need to download some files before starting.
1. Create a new directory called LaTeX for this work.
2. Download the files template.tex and test.bib from
http://www.stats.ox.ac.uk/pub/susan/cdt for use during this practical.
3. Find an R plot you have created or download Hills.pdf from the above location.
You can download fresh copies of the files whenever you want. Other files here include
Exercises.pdf This file.
final_template.tex For downloading at the end of the practical session. This file can be
used as a template for your practicals.
small.tex For the independent exercises.
Open the file template.tex from Texmaker and save it as first.tex. L
A
T
EX documents
must always end with .tex. Click on the arrow to the left of PDFLaTeX to build the
document.
Each time you finish making changes to first.tex, it must be built as in Figure 2.
The large centre screen is the editor window where you add to and change your document.
Notice the small window below this. Information about the build will appear here. If there
are errors then they will be shown here.
If the build has completed without errors, then click on the arrow to the left of the View
PDF to preview your document. The preview window on the right shows you how the
document will look when it’s printed as in Figure 3.
Note that some of the text in the editing screen (not on this printed page!) is highlighted
in different colours. This shows us which are typesetting commands and which is text; it
also makes finding errors much easier.
2