Fatih Kansoy

Software · 12 November 2026

EcoFin.sty: A LaTeX Style for Working Papers

The result is that one LaTeX file gets me to produce both the version of the paper I want to find on my desk (the working paper), the anonymous copy for referees and the online appendix, and all this while having my co-authors' notes conveniently floating in the margin of the screen. And all of this with a single word command.

Posted
12 November 2026
Kind
Software
By
Fatih Kansoy
A ruled page with notes in its margin, one sliding in beside its line
Contents
  1. What is in it
  2. Get it

Today I released a free LaTeX style file (EcoFin.sty) that you can use when writing working papers in economics and finance (or economic history). It grew naturally out of the template I was using for my own papers, so if you want to write working papers in LaTeX this is probably what you want. You're free to use it and modify it as you see fit.

The entire paper is in this file. I've rigged it so that by changing a single word I can get the same file to compile either into the working paper, an anonymous version (stripping off all author names and acknowledgements, e-mail addresses, ORCID links, etc) with a title page or without a title page, or into the online appendix. The latter also clears out the author field in the PDF.

  1. 1. WriteOne file, standard LaTeX commands
  2. 2. DiscussCo-authors' notes in the margin, shown or hidden
  3. 3. SubmitAnonymous copy, title page and appendix from the same file
  4. 4. ShareWorking paper and arXiv upload
One file, every version. Recorded from real builds of the sample paper. 60 seconds, no sound.

What is in it

Each author gets just one line. The style lays out in a nice clean way from one to six (or more) authors in the title block. And you can turn off the sections and appendix without deleting all that text. Titles and headings are set in Geist Serif, body text is set in Source Serif and mathematics is typeset in Latin Modern with the captions above tables and figures and notes and sources below. Using invented data, the sample paper estimates

\[ y_{it} = \beta\,\mathit{Treated}_i \times \mathit{Post}_t + \alpha_i + \gamma_t + \varepsilon_{it}. \]

In fact, on the project page I've included its Figure 1 as an event study to track the evolution from one year to the next. And I've also posted a short video showing off all the features of the style.

Parts of pages 2 and 3 of the sample paper with the introduction and its two equations, Table 1, and Figure 1, an event study with 95 per cent confidence intervals.
Parts of pages 2 and 3 of the sample paper, with text and equations, a table and an event-study figure. From a real build of the sample that comes with the style.

Get it

You can download the style files and a sample paper from fatih.ai/latex or grab it directly from my repository on GitHub. It compiles under LuaLaTeX, XELaTeX and pdfLaTeX. The sample paper contains examples demonstrating all of the main features described in this document (in six pages) and I describe each of them in turn on project page.

More news

All news