Skip to article content
Back to Article
Quantitative Economics MyST Template
Download Article

Quantitative Economics MyST Template

MyST Markdown template for Quantitative Economics journal submissions.

QE Template Thumbnail

Features

Quick Start

1. Install MyST

npm install -g mystmd
# or
uv tool install mystmd

2. Create Your Document

Create a Markdown file with proper frontmatter:

---
title: Your Paper Title
short_title: Running Head Title
date: 2025-01-15
license: CC-BY-4.0
open_access: true
exports:
  - format: tex+pdf
    template: https://github.com/alanlujan91/qe_template
    output: paper.pdf
    draft: true  # or final: true for publication
authors:
  - name:
      given: First
      surname: Author
    email: first@author.edu
    affiliations: ["aff1"]
  - name:
      given: Second
      surname: Author
    email: second@author.edu
    affiliations: ["aff2"]
affiliations:
  - id: aff1
    department: Department of Economics
    institution: First University
  - id: aff2
    department: Business School
    institution: Second University
keywords:
  - keyword 1
  - keyword 2
  - keyword 3
tags:
  - C00
  - D00
bibliography: references.bib
venue:
  title: Quantitative Economics
  url: https://qeconomics.org/
parts:
  abstract: |
    Your abstract here (max 150 words recommended).
    Should be clear, descriptive, and self-explanatory.
  acknowledgement: |
    We thank reviewers and acknowledge funding sources.
    Do not thank the editor by name.
---

# Introduction

Your content here...

3. Build PDF

myst build paper.md --pdf

4. See Complete Example

A working example is available in sample/qe_sample.md.

Template Options

Configure via exports in frontmatter:

OptionTypeDefaultDescription
draftbooleantrueDraft mode for initial submission
finalbooleanfalseFinal mode for prepublication

Note: Use acknowledgement: (singular) in frontmatter, not acknowledgements.

MyST Implementation Details

Approach

This template balances MyST native features with raw LaTeX to stay as close as possible to the official Quantitative Economics template while maintaining good authoring experience.

Where We Use MyST Native Features

Typography

Citations

Lists

Footnotes

Short Quotations

Theorem-like Environments

Cross-References

MyST provides powerful cross-referencing, but the syntax depends on whether the target is MyST-native or raw LaTeX:

Important: \ref{} commands only work inside {raw} latex blocks. In regular markdown content, you must use MyST cross-reference syntax ({numref}, {eq}, [text](#label), etc.).

For MyST Native Elements (use MyST roles):

For Equations:

For Raw LaTeX Elements:

See MyST Cross-references Guide for complete details.

Where We Use Raw LaTeX

Complex Tables

Custom Enumerated Lists

Long Quotations (multi-paragraph)

Multi-line Equations with Inline Labels

Author/Affiliation Block

Known Acceptable Differences

When comparing the MyST-generated LaTeX output to the original QE template, the following differences are expected and acceptable:

Formatting & Spacing

  1. Line breaks/spacing: MyST normalizes whitespace (double spaces after periods to single spaces, line wrapping differs)

  2. Paragraph formatting: Content is identical but may reflow differently

Citation Differences

  1. Citation commands: MyST converts citation roles to LaTeX commands:

    • {cite:author} becomes \citet{} (original uses \citeauthor{})

    • {cite:year} becomes \citet{} (original uses \citeyear{})

    • Citation spacing: {b2,b3,b4} becomes {b2, b3, b4} (spaces added after commas)

    • Workaround: Use raw LaTeX \citeauthor{} and \citeyear{} directly if exact match required

Theorem Environments

  1. Theorem numbering: MyST’s {prf:} directives always generate section-numbered theorems:

    • MyST behavior: \newtheorem{theorem}{Theorem}[section] produces “Theorem 1.1”, “Theorem 1.2”

    • Original template: \newtheorem{theorem}{Theorem} produces “Theorem 1”, “Theorem 2”

    • This is inherent to MyST’s proof directive implementation and cannot be changed

    • Template enables numbering: for headings to keep document internally consistent

    • Template keeps standard environments (claim, fact) for raw LaTeX usage

    • Alternative: use raw LaTeX for all theorems if global numbering is required

Cross-References

  1. Equation references: Mix of MyST and raw LaTeX syntax

    • MyST native equations: {eq} role generates (\ref{...})

    • Raw LaTeX equations (with \label{} inside math blocks): Must use (\ref{...}) directly

    • Reason: MyST’s {eq} role cannot track labels inside raw LaTeX blocks

    • Both render identically in final PDF

Figures & Tables

  1. Figure paths: MyST copies figures to files/ with content-hash filenames

    • Original: \includegraphics{figure_sample}

    • MyST: \includegraphics[width=0.7\linewidth]{files/figure_sample-<hash>.pdf}

  2. Table legends: MyST doesn’t support \legend{} command inside tables

    • Workaround: Use **Table note:** paragraph after table (as in sample)

Package & Environment Differences

  1. Preamble additions: MyST adds explicit imports in addition to template-defined packages

    • Template includes: amssymb, bm, etoolbox, fontenc, hyperref, textcomp, times, url

    • MyST may add: amsmath, amsthm, graphicx, natbib as needed

    • See packages: list in template.yml

  2. Equation environments:

    • MyST-native math blocks use align (modern best practice)

    • Multi-line equations with inline \label{} commands preserve original environment (eqnarray, etc.) via raw LaTeX blocks

    • Reason: Preserving inline labels requires raw LaTeX; see “Multi-line Equations with Inline Labels” section

What Works Correctly

Local Development

Preview Website

Preview website locally:

myst start

Build PDF manually:

myst build your-paper.md --pdf

Troubleshooting

LaTeX compilation errors:

  1. Missing bibliography: Ensure bibliography: file.bib in frontmatter and file exists

  2. Author format: Check name structure matches example above

  3. Citations: Verify all {cite:} references have matching BibTeX entries

  4. Math: Ensure all $ and $$ are properly closed

  5. Tables: Check all \begin{table} have matching \end{table}

Common issues:

Getting help:

Template Files

License

Contributing

Contributions are welcome! See CONTRIBUTING.md for development setup, workflow documentation, and guidelines.

Quantitative Economics MyST Template
Quantitative Economics MyST Template