Escolar Documentos
Profissional Documentos
Cultura Documentos
Abstract 3 Citations
A document was prepared which gives a framework which Notice how in the Introduction section I made reference to
can be used to write documents suitable for lab reports. an item in the References section at the end of the docu-
ment. In the bibliography file report.bib the informa-
tion about this reference is stored and labeled LAMPORT.
1 Introduction Anywhere I wish to cite this reference it is just a matter
of entering the command \cite{LAMPORT}. LATEX will
LATEX is a typesetting language[?]. It is actually a set of keep track of the numbers, you just have to use the labels.
macros for TEX, which is a typesetting system. TEX was
written by Donald Knuth, a celebrated computer scientist
and mathematician, in reaction to his disatisfation with avail- 4 Using Equations
able software. Much as Unix is an operating system which
appeals to people who write programs, TEX and LATEX tend Sometimes in a lab report you might want to insert the odd
to appeal to technically minded people. equation, it is important to refer to these by number. Again
This document is written to expose you to some of the we can let LATEX keep track of the numbers and use labels.
features of LATEX which might make it suitable for prepar- It is not at all required, but an unspoken convention that
ing lab reports. It does not cover how to compile docu- most people use upcase for labels. Labels can contain hy-
ments, this is covered on the Wiki page for this template[?]. phens (-), but not underscores ( ).
This template is not provided as a part of any exercise,
N
you do not have to use it, it is provided as a resource which 1 X
you may use if you are interested. µ= xi . (1)
N i=1
Equation 1 shows a common definition for the mean, µ,
2 Typesetting where xi is the value of the ith sample, N is the number of
samples. First note that, as required, all symbols have been
The following is quoted from Wikipedia[?]: defined. Also note that the equation has a period. Equations
are part of the text and should follow punctuation rules.
LATEX is based on the idea that authors should
That is they should have periods, commas etc as required.
be able to concentrate on writing within the
A good rule of thumb is to treat the equation like a sentence
logical structure of their document, rather than
with the equal sign as the verb. Thus the above formula
spending their time on the details of format-
reads: µ equals one over N times the sum of xi from 1
ting. It encourages the separation of format-
to N . As you can see, this sentence definitely requires a
ting from content, whilst still allowing man-
period.
ual typesetting adjustments where needed. By
There are two modes in LATEX, paragraph mode and
keeping the formatting details in a separate file
math mode. LATEX is in paragraph mode when it is process-
from the text, it is often regarded as superior to
ing ordinary prose[?]. Between the \begin{equation}
word processors and most other desktop pub-
and \end{equation} commands LATEX is in math mode,
lishing systems, which allow trivially easy vi-
this allows access to a vast array of mathematical symbols.
sual layout changes but tend to intertwine con-
You can switch briefly into math mode using the dollar
tent and form so tightly that consistency and
character ($) as a delimiter.
automation are often difficult.
1
5 Figures
Arbitrary encapsulated-postscript can be displayed in LATEX
using the figure environment.
6 Conclusions
Hopefully this might be slightly helpful. I urge you to
look at some other reference materials, such as Oetiker’s
paper[?].