# Introduction

This workshop serves as an introduction to LaTeX, using the graphical user interface LyX. We explain the advantages of using LyX, and provide an exercise with the aim of producing a basic template of a scientific report.

Our motivation is to allow people to quickly gain familiarity with LaTeX.

LaTeX is the way to write academic literature in the sciences. This means it’s essential to learn at some point. Previous workshops have introduced the topic in a theoretical and rigorous way, which doesn’t lend itself to people who want to quickly gain familiarity, and so for this reason we are adopting a slightly different approach.

It is often remarked that LaTeX is the antithesis to the mantra WYSIWYG (What You See Is What You Get), and this is very true. LaTeX is essentially code (a .tek file), which is compiled to form a document (e.g. pdf). The beauty of LaTeX comes from its customisability and how it can represent completely general mathematical equations in a beautiful and consistent way.

We are going to introduce LyX, a piece of software which is based on the philosophy WYSIWYM (What You See Is What You Mean) and is more akin to a word processing suite e.g. MS Word than writing bare LaTeX. However, it encourages a structured approach to document creation and allows combination of flexibility of LaTeX with the ease of a word processor. Its main advantage is that you see how the document appears in a clear way as you write it, and don't need to repeatedly re-compile into a pdf. This makes the document writing process more fluid.

Why LaTeX?

• Equations
• Figures
• Consistent formatting
• Cross referencing
• Bibliography

Why LyX?

• Open source GUI
• Cross-platform
• Multiple online resources
• Ease of formatting
• Version control
• Spellchecker
• Export to LaTeX

# Installation

## VirtualBox

A virtual machine image is provided that has the required packages preinstalled, as well as the workshop content. This is the recommended install as it's the quickest and easiest to get up and running.

The packages and workshop content can be easily installed on your own machine if that is preferred to running from a virtual machine.

### Full Install

The easiest way to install all the required packages on your own machine is to install install the packages as follows:

• Git: If not already installed, either download git and install it from here or install it using a package manager.

• TensorFlow: Install TensorFlow for Python by using pip, "pip install tensorflow".

• Graphviz: Install Graphviz for Python by using pip, "pip install graphviz".

Anaconda, git, Tensorflow, and Graphviz

## Bibliography

If you have a small number of references you can use LaTeX's bibliography environment as follows:

\begin{thebibliography}{99}

\bibitem{ref1} Person A, Person A's Paper,
Journal A (Date A).

\bibitem{ref2} Person B,
Person B's Book, Publisher B (Date B).

\end{thebibliography}


Items are added using the '\bibitem{label}' command. You can use the '\cite{}' command in text to refer to particular entries in the bibliography.

For instructions on how to use BibTeX for referencing, we refer to the excellent previous workshop by Gabriele Boschetto and Alejandra Vergara, which can be found here.

# Exercise

Try to recreate the following pdf as close as you can, you can use either LyX or, if you are more comfortable, LaTeX to do this. Feel free to be creative, there's no need to laboriously recreate the exercise pdf exactly, as long as you can demonstrate the main features.

• Exercise: pdf
• Cheat sheet: pdf

The aim here is to both show that LyX is far quicker to reproduce the basic document structure needed for scientific reports and also allow people to gain familiarity with LaTeX.

• Solutions in LyX: lyx
• Solutions in LaTeK: tex
• .bib file for bibliography: bib
• Image for exercise: png