LaTeX
- Inlämningsdatum Inget inlämningsdatum
- Poäng Ingen
pandoc -t html latex.md
Writing reports with LaTeX
LaTeX Links to an external site. is a document preparation system. LaTeX is based on TeX Links to an external site., which is a typesetting engine that can do anything Links to an external site..
The main purpose of these systems, and the reason we want you to learn this, is to prepare high quality documents and reports. LaTeX lets you focus on the contents of the report: you say what should go in, if anything should be emphasized, what’s the contents of figures, the data for references etc. and LaTeX will put this content together in a form that is comforable to read and aesthetically pleasing.
So what about word processors Links to an external site. like Microsoft Word of LibreOffice Writer? Well, word processors are to readability as food processors are to restaurant critics. Of course, it’s possible to achieve good results with a word processor too, it’s just that it requires much more effort than most people imagine (this Links to an external site. brings up a few of the things that one must ensure manually with the word processor). So using a system like LaTeX is actually makes better results more easy to achieve.
Learning LaTeX
Run through this tutorial Links to an external site.. We recommend that you start out with Overleaf Links to an external site. as editor, since that is an option for easy experimentation in the tutorial. KTH provides Overleaf Professional for all students Links to an external site., you just need to register an account using your KTH email address. (Or add your KTH address, if you’ve already signed up for the free version.)
With Overleaf Professional you can use Overleaf with Git Links to an external site.. However, to use branching and pull-requests to their full extent, it’s probably easier to use a local editor instead of Overleaf. All powerful text editors has syntax highlighting and auto-completion support for LaTeX.
The material has talked about producing books and reports so far. It’s also possible to use LaTeX to produce slides. One way to do that is with beamer Links to an external site.. Overleaf has a short tutorial Links to an external site., but we recommend the documentation for beamer Links to an external site. — that documentation is actually written as a guide to good presentations in general, well worth reading.
Assessment
Write a short document (article, using the article
document class) in LaTeX with the following requirements: it must contain
- a title,
- a table of contents,
- a figure,
- a citation with a reference, you can use Libris Links to an external site. (web) or libris.sh Links to an external site. (terminal) to create a BibTeX reference to a book;
- a listing, using the listings package
Links to an external site., that contains your command line history (the output of the
history
command).
The document must be committed and pushed to a repository on KTH GitHub. Note that the repository must be owned by the datintro20
organization. See [here][repo-tranfer] for instructions how to fix that for an existing repo. (It’s also possible to select the organization as owner directly when the repo is created.)
We assess that by doing this you can create and compile technical reports and handle submissions of (program) code with version control tools.