Fatih Kansoy

Projects · Software · 2026

LaTeX Working Paper Style: EcoFin.sty

I wrote a (free) LaTeX style that lets you produce every version from one file. So if you write an economics or finance working paper (or indeed an economic history working paper), you can generate your working paper, an anonymous version for sending to referees, and an online appendix, and have all the comments by other authors displayed in the margin and turn them off with just a 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

Imagine being an academic economist trying to submit a paper. You have multiple versions of your paper that need to be managed separately at different times. You want one version with author names on it, another blinded for sending out to referees, a third version with a separate title page for submitting through the journal portal, and a standalone online appendix. If you ever find a typo or need to update a table in the middle of your paper, how do you avoid making the same edit in all these versions?

With EcoFin.sty you can have all the different versions of your paper in the same file. And by changing a single word you'll get one or the other to compile. When preparing an anonymous version of a paper for submission, the style will remove author names and acknowledgements (and e-mail addresses and ORCID links) and clear out the PDF author field, while leaving all the rest of your text identical, since it's coming from the same source 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.

To ease authors' burden further, one command to build your project can be used to generate not only your complete document but also the three distinct files (the title page, the anonymised version of your paper, and the online appendix) that journal submission portals typically ask for.

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 their comments right into your draft. For example, they could use the command \mnote to leave a comment next to a given sentence, or \discuss to raise a question about a section, or even \replace to suggest rewording some passage (with the old version typeset on the side in the margin).

One word turns margin notes on and another turns them off, while preserving the identical line breaks between the two cases (so that people all read the exact same pagination) and ensuring that in an anonymous version no such margin note would ever print.

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

The title block is set so that each of the authors' names appears on a line of its own. It will therefore arrange one to six authors automatically (and cleanly) into either up to three on a line or four or more split across two lines, with all e-mail addresses and ORCID links placed in a footnote.

The advantage of this approach is that any part (e.g., a section, a block of text) or even all of the online appendix can be turned off without having to delete any text. This may come in handy if you are asked by a journal to submit a shorter version of your manuscript.

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

Titles and headings are set in the Geist Serif font, body text in Source Serif and mathematics in Latin Modern. Citations appear in brick red and internal links to tables, figures and equations (with their captions above and notes and sources below) in blue. Digits in a table are aligned in clean 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.

These are all optional and can be toggled with a single switch (e.g. use STIX Two or Libertinus fonts in mathematics mode, have equation numbers on the left side instead of right, use Roman instead of Arabic numerals for 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

To create a new paper using the ecofin package, you can either simply copy over the files ecofin.sty, bibliography.bst and the folder fonts into the same directory as your paper, or download the complete bundle from the repository which also contains a sample document. A new manuscript using the ecofin package will then look 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}

This style will compile fine with LuaLaTeX and XELaTeX. If you try it with the traditional pdfLaTeX, it will use Source Serif for the headings (Geist Serif unfortunately can only be used with LuaLaTeX or XELaTeX).

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 an extension of standard LaTeX article class. The format for the bibliography is based on Shiro Takeda's econ.bst file. Geist Serif is by the Geist Project Authors at Vercel and Source Serif by Adobe, both licensed under the SIL Open Font License. Pascal Michaillat's latex-paper template was a helpful reference.

Limits

This template follows the conventions of most fields in economics, finance, and economic history. It has not been tested in other disciplines. Geist Serif headings require LuaLaTeX or XELaTeX. Each author is limited to a single affiliation line. When there are heavy notes on the margins, it can happen that adding a page break at the same point will cause a shift by one line (although all line breaks remain identical). Most journals requiring their own class file also require this at the time of acceptance, so this style is optimised for working papers and initial submission to journals.

More projects

All projects