ECPR

Install the app

Install this application on your home screen for quick and easy access when you’re on the go.

Just tap Share then “Add to Home Screen”

ECPR

Install the app

Install this application on your home screen for quick and easy access when you’re on the go.

Just tap Share then “Add to Home Screen”

Your subscription could not be saved. Please try again.
Your subscription to the ECPR Methods School offers and updates newsletter has been successful.

Discover ECPR's Latest Methods Course Offerings

We use Brevo as our email marketing platform. By clicking below to submit this form, you acknowledge that the information you provided will be transferred to Brevo for processing in accordance with their terms of use.

Introduction to LaTeX

Course Dates and Times

Thursday 27 - Saturday 29 July

10:00-12:00 and 14:00-17:00

Please see Timetable for full details.

Bruno Castanho Silva

b.paula.castanho.e.silva@fu-berlin.de

Freie Universität Berlin

The course introduces the use of LaTeX for producing academic documents, a widely used platform in the natural sciences which remains underused by social scientists. At the end of the course, students will be ready to produce a conference paper including well-formatted tables, figures, and equations. We will also cover how to extend this to produce longer documents, such as dissertations, and briefly present the integration of LaTeX with R for creating an entirely reproducible workflow. Knowing the fundamentals taught in the course, students will be able to later extend their abilities in order to produce handouts and presentations using LaTeX.


Instructor Bio

Bruno Castanho is a postdoctoral researcher at the Cologne Center for Comparative Politics, University of Cologne.

He holds a PhD in political science from Central European University and has experience teaching various topics in research design and methodology, including causal inference, machine learning, and structural equation modelling. 

Bruno has written a textbook on Multilevel Structural Equation Modelling in collaboration with fellow Winter School instructors.

  @b_castanho

Latex is a favorite in STEM fields due to its unmatched quality in producing professional-looking documents with well-formatted figures, tables, and equations at minimal effort compared to alternatives like Microsoft Office. Technically, LaTeX is an open-source programming language in which documents are written as plain text and, following a set of rules and commands, compiled into pdf outputs. It is a excellent for collaboration due to being free from issues with compatibility or varying software versions – a LaTeX document will produce the exact same output regardless of the specific software or operational system being used.

This is an applied class in which we go through all the steps for producing a conference paper in LaTeX. The first section will introduce the LaTeX syntax, and the most basic aspects of creating a document: document types, compilation, formatting, creating headers, paragraphs, and the usage of packages. For this section, students are expected to have installed TeXstudio, as we will cover the basic aspects of this interface.

The second class will focus on figures and tables: placement, headers and notes, and formatting. We will also see how to export/convert R outputs and Excel tables into LaTeX easily, minimizing disruptions in your work due to copy/pasting. We will also work with in-text links and references to tables and figures. At the end, we will spend the last part of the class getting familiar with the math mode in LaTeX, for writing both in-text and indented equations.

The third class will be devoted to the final aspects of a conference paper: references and creating the bibliography. The bibtex system will be introduced, as well as how to export your bibliography from managing software (such as Mendely and Zotero) quickly into LaTeX. We will also see how to produce longer documents, like dissertations, using LaTeX, for which it has unmatched flexibility and capacities. We will briefly have an example of integration between LaTeX and R through the knitr package, for crafting an entirely reproducible workflow, and discuss venues for further practice.

Due to time constraints, the course will not cover the crafting of presentation slides, drawing and creating graphs within LaTeX, or converting LaTeX documents to other formats, such as HTML or Word. This class is for students who have none (or very little) experience with LaTeX, meaning they have never written a paper using it, and need to start from the basic commands.

Readings should be seen as sources for consultation when looking for specific answers on those topics, not as mandatory pages to go through before classes. No prerequisites are required, but note that basic familiarity with HTML or another markup language will make your life easier.

No prerequisite knowledge is required.

Day Topic Details

Each session is timed to last 90 minutes, and I have split up the material in 10 sessions over the course of our three days.

Thursday Basics document editing

Introducing the LaTeX syntax, compilation, packages, and the creation of a simple document with headers, paragraphs, and basic formatting.

Friday Graphs, tables and equations

We’ll see how to easily create and format tables, include figures, set the right placement for both, and in-text references. This session will also include examples of how to export tables from R and Excel quickly into LaTeX, and how to write equations in the math mode.

Saturday Bibliographies and further advanced topics

This session will focus on including and managing citations and bibliographies, as well as integrating LaTeX and bibliography management software. Towards the end, we will see how to produce longer documents (such as dissertations), and touch upon a few venues for more advanced topics, including R and LaTeX integration.

Day Readings
Note

The class has been designed to be carried out through a learning-by-doing approach. We go together over commands and software options, learning together the steps that are needed to achieve particular results, and addressing problems as they appear. For those of you who wish to also have an accompanying set of materials, however, I recommend the following list:

Friday

Kottwitz, Stefan. 2011. LaTeX Beginner’s Guide. Birmingham: Packt Publishing, Ch. 5;

Oetiker, T., H. Partl, I. Hyna, and E. Schlegl. 2016. The not so Short Introduction to LaTeX 2e: or LaTeX 2e in 157 minutes. v. 5.06, ch. 3.

Thursday

Kottwitz, Stefan. 2011. LaTeX Beginner’s Guide. Birmingham: Packt Publishing, Ch. 1, 2, and 3

Oetiker, T., H. Partl, I. Hyna, and E. Schlegl. 2016. The not so Short Introduction to LaTeX 2e: or LaTeX 2e in 157 minutes. v. 5.06, ch. 1 and 2.

Saturday

Kottwitz, Stefan. 2011. LaTeX Beginner’s Guide. Birmingham: Packt Publishing, Ch. 6 and 7, 10 and 11.

Daly, P. W. 2013. Natural Sciences Citations and References (description of natbib package).

Software Requirements

Windows and Mac users must install TeXLive 2016 or MikTeX (freely available at https://www.tug.org/texlive/ and  https://miktex.org/) prior to the course start. All students (regardless of OS, including Linux users) are strongly encouraged to install TeXstudio before the first class (freely available for download at http://www.texstudio.org/). This is a user-interface that makes using LaTeX much easier and more comfortable.

Hardware Requirements

Participants need to bring their own laptops with software installed.

Literature

Kopka, Helmut, and Patrick W. Daly. 2004. A Guide to LaTeX and Electronic Publishing. Boston, MA: Addison-Wesley

Mittelbach, Frank, and Michel Goossens. 2004. The LaTeX Companion. 2nd edition. Boston, MA: Addison-Wesley

Syropoulos, Apostolos, Antonis Tsolomitis, and Nick Sofroniou. 2003. Digital Typography Using LaTeX. New York: Springer.