---
title: "LaTeX Working Paper Style: EcoFin.sty"
canonical: "https://fatih.ai/latex/"
kind: "Software"
period: "2026"
categories: ["software", "academic"]
schema_type: "SoftwareSourceCode"
content_signal: "ai-train=no, search=yes, ai-input=yes"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://fatih.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# 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.

## Links

- [Download](https://fatih.ai/latex/ecofin-sty-1.0.0.zip)
- [Code on GitHub](https://github.com/kansoy/EcoFin.sty)
- [Sample paper (PDF)](https://fatih.ai/latex/sample-paper.pdf)

## Project Details

- **Version:** 1.0.0, 12 November 2026
- **Licence:** LPPL 1.3c or MIT
- **Works with:** LuaLaTeX, XeLaTeX, pdfLaTeX
- **Made by:** Fatih Kansoy

## 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.

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.

## 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.

## 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.

## 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.

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).

## 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](https://fatih.ai/latex/ecofin-sty-1.0.0.zip) 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
\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).

## Details

The [README](https://github.com/kansoy/EcoFin.sty#readme) in the repository explains the rest.

    [Modes](https://github.com/kansoy/EcoFin.sty#modes)Seven versions from one file, and the three-file set for journal sites
    [Settings](https://github.com/kansoy/EcoFin.sty#settings)Every option with its default
    [Tables](https://github.com/kansoy/EcoFin.sty#tables)Three-part tables, panel rows and aligned decimals
    [Figures](https://github.com/kansoy/EcoFin.sty#figures)Captions, notes, the colour set and its Python companion
    [Numbers](https://github.com/kansoy/EcoFin.sty#numbers)Results written by your analysis script and used in the text
    [References](https://github.com/kansoy/EcoFin.sty#references)One list for the paper and one for the online appendix
    [arXiv](https://github.com/kansoy/EcoFin.sty#arxiv)A 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.
