LaTeX – The Ulyssis Workshop (part 2)

Last time I introduced the very basics of LaTeX after a workshop organised by Ulyssis, which you can find here. As I promised earlier, today I will talk you through the code to insert tables and figures into your text. For those of you who want to really impress their peers, I will also explain how you can format two figures next to each other (which required some serious googling skills on my behalf). But let’s get started with the basics first.

You can add your table within a \part{Title goes here}, \section{Subtitle goes here}, or \subsection{Subsubtitle goes here} of your \begin{document}, but before your \end{document}. There are several kinds of tables, the most basic one starts by \begin{tabular}{c c c} to specify that you want three columns, and for each row you add item & item & item \\ to fill in the three columns. After you added several rows, don’t forget to \end{tabular}.

For your fancy table you \begin{table}[h] right here, but you want it in the \begin{center} and then you can \begin{tabular}{c c c} with some columns, which you know how to fill in by now (item & item & item \\ for each row). After you \end{tabular}, you add a \caption{fancy table}, you \end{center} and finally, you \end{table}. Once you understand the basics, you can make your life easier by creating your tables in a tool such as http://www.tablesgenerator.com/.

So there you go, the perfect tables and figures to impress any reader! Next time, I will explain how to add your citations and bibliographic references, BiBTeX style.