Fatih Kansoy

Projects · Software · 2026

LaTeX Working Paper Style: EcoFin.sty

A LaTeX style for working papers in economics, finance and economic history. One file gives the working paper, the anonymous copy for referees and the online appendix. Co-authors' comments sit in the margin and switch off with one word.

Version
1.0.0, 12 November 2026
Licence
LPPL 1.3c or MIT
Works with
LuaLaTeX, XELaTeX, pdfLaTeX
Made by
Fatih Kansoy
One sheet with arrows to four thinner sheets, one of them lifting with its name line empty
Contents
  1. One file, every version
  2. Comments in the margin, on or off
  3. Add an author, hide a section
  4. The page itself
  5. Start
  6. Details
  7. Built on
  8. Limits

One file, every version

A paper is usually kept in several files. One copy has the authors' names. Another has no names and goes to the referees. The journal also wants a separate title page, while the appendix goes online as a file of its own. Every correction then has to be made in each of these files.

With EcoFin.sty the paper stays in one file. One word in that file decides which version comes out. The anonymous copy leaves out the names, the thanks, the e-mail addresses and the ORCID, together with the author field of the PDF. The rest is the same text, because it comes from the same file.

master.tex

\usepackage{ecofin}
\ecofinsetup{mode = wp}

\title{Administrative …}
\author[1]{Jane Doe}
\author[2]{John Roe}
\thanks{We thank …}

\begin{document}
\maketitle
 …

What comes out

Administrative Screening and Career Progression

Jane DoeJohn Roe

Paper and references

Online appendix

Six pages. Names, thanks and addresses are on the first page.

One file, four versions. In the anonymous copy the author line and the first-page notes are empty. The pages stand for those of the sample paper that comes with the style.

One command also writes the three files that journal sites ask for, namely the title page, the anonymous manuscript and the online appendix.

The working paper, the anonymous copy, the title page, the online appendix and the three-file set, all built from one file. Recorded from real builds of the sample paper. 60 seconds, no sound.

Comments in the margin, on or off

Co-authors can write to each other inside the draft. \mnote leaves a note beside a sentence and \discuss asks a question. \replace proposes new wording while it keeps the old wording in the margin.

One word shows the notes and another hides them. In both cases the text breaks into the same lines, so everyone reads the same paper. An anonymous copy never shows the notes.

3.1 Identification

Empirical studies of organisations open with the economic question and the setting.•[FK] Check the clustering level. We then estimate a simple model on a long panel of offices and report the slope with its standard error, which is the number a reader will look for first in the table.

The second part of the argument continues[BS] was: goes on for long enough that a moved line break would be seen at once. Identification rests on the timing of the reform, which the ministry announced without warning in the spring of the first year. ▸[Ref 2] Add the first stage?The offices could therefore not prepare for it.

\ecofinsetup{notes = show}
The same paragraphs with the notes shown and hidden. The lines of the text do not move.
Three kinds of note written into the text. They are shown, then hidden, then left out of the anonymous copy. Recorded from real builds of the sample paper. 60 seconds, no sound.

Add an author, hide a section

Each author is one line in the file. The title block places one to six authors by itself, with up to three in a row and four or more in two rows. The e-mail address and the ORCID of each author go into a footnote.

A section, a block of text or the whole online appendix can be switched off without deleting it. This is useful when a journal asks for a shorter version.

Administrative Screening and Career Progression

Jane DoeExample University

John RoePartner University

Ada ExampleExample Institute

Ben SampleExample College

Cem TrialExample University

Dana TestPartner University

This version: November 2026

sections

  1. Introduction
  2. Results
  3. Conclusion

Five sections and the online appendix.

Left, the title block with one to six authors. Right, sections switched on and off. The remaining sections are numbered again by themselves.
The title block of the sample paper built with one, two, three, four, five and six authors, and the footnote with the e-mail addresses and the ORCID.
The title block with one to six authors, from six real builds, and the footnote where the e-mail address and the ORCID go.
One to six authors with their footnotes, then sections and the appendix switched off. Recorded from real builds of the sample paper. 60 seconds, no sound.

The page itself

The title and the headings are set in Geist Serif, the text in Source Serif and the mathematics in Latin Modern. Citations are brick red, while links to tables, figures and equations are blue. Captions stand above tables and figures, with the notes and sources below them. In tables the numbers line up in their columns.

Headings in Geist Serif2. Data and Empirical Design

Text in Source SerifCluster-robust inference follows design-based sampling principles (Abadie et al. 2023)Citation. Table 1 summarises the panel. For each individual observed in a period we estimate

Mathematics in Latin Modern\(y_{it} = \beta\,\mathit{Treated}_i \times \mathit{Post}_t + \alpha_i + \gamma_t + \varepsilon_{it}\)(1)

Caption above, notes belowtable 1. Summary of the Demonstration Panel

Roster stratumPersonnelPerson-years
Core headquarters rosters4,20054,600
Regional directorate rosters6,30071,400
Auxiliary archive extracts1,50018,000

Notes: Each person is assigned to the roster stratum with most of the observed career years.

A part of a page, drawn here with the same typefaces. The numbers are those of the sample paper.

Other choices are one option each, for example STIX Two or Libertinus for the mathematics, equation numbers on the left, Roman section numbers and A4 paper.

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.
A tour of pages 2 and 3 of the sample paper, then the options for mathematics, equation numbers and section numbers. Recorded from real builds of the sample paper. 60 seconds, no sound.

Start

Put ecofin.sty, bibliography.bst and the fonts folder next to your paper. You can also download them together with the sample paper. A paper then begins like this.

LaTeX · paper.tex
\documentclass[11pt]{article}
\usepackage{ecofin}
\bibliographystyle{bibliography}

\title{Your Title}
\author[1]{Your Name}
\affil[1]{Your University}
\date{November 2026}

\begin{document}
\maketitle

\begin{abstract}
Your abstract.
\end{abstract}

\section{Introduction}
Your text \citep{key}.

\bibliography{references}
\end{document}

The style works with LuaLaTeX, XELaTeX and pdfLaTeX. Under pdfLaTeX the headings are set in Source Serif, because Geist Serif needs one of the other two engines.

Two terminal outputs. The anonymity check passes on the sample paper and fails on a copy that names one of its authors in the text.
The anonymity check on the sample paper, and on a copy with an author's name left in the text. Real output.
From the download to a first PDF, then a check that finds a name left in an anonymous copy. Recorded from real builds of the sample paper. 60 seconds, no sound.

Details

The README in the repository explains the rest.

ModesSeven versions from one file, and the three-file set for journal sites
SettingsEvery option with its default
TablesThree-part tables, panel rows and aligned decimals
FiguresCaptions, notes, the colour set and its Python companion
NumbersResults written by your analysis script and used in the text
ReferencesOne list for the paper and one for the online appendix
arXivA ready-made upload file

Built on

EcoFin.sty is a style for the standard article class of LaTeX. Its reference style is adapted from Shiro Takeda's econ.bst. Geist Serif is by the Geist Project Authors at Vercel and Source Serif is by Adobe. Both fonts are under the SIL Open Font License. Pascal Michaillat's latex-paper template was a reference while building the style.

Limits

The style follows the habits of economics, finance and economic history. It was not tried in other fields. Geist Serif headings need LuaLaTeX or XELaTeX. An author has one affiliation line. With many margin notes a page break can fall one line earlier or later than without them, although the line breaks do not change. A journal that requires its own class file still requires it. For this reason the style is meant for the working paper and the submission copy.

More projects

All projects