Prerequisites:
myst.yml, four notebooks, and a working myst build.gitignore)Throughout this document, {BALLPARK} stands for your paper’s folder name (e.g. Benhabib_et_al_2019, OptimumDebt). Always replace it with your actual folder name.
source/ inside your paper folder: models/We-Would-Like-In-Econ-ARK/{BALLPARK}/source/source/.source/ as well.The .gitignore includes source/**, so nothing in source/ (the PDF or the LaTeX) will be committed or pushed. Both stay local to avoid sharing copyrighted content.
Use one of the tools introduced in class to convert your ballpark paper into either a PDF or MyST Markdown (.md) document — or both. This gives you a portable, shareable version of your assembled ballpark entry.
Work in your ballpark paper folder:
cd ~/github/<your-username>/ballpark/models/We-Would-Like-In-Econ-ARK/{BALLPARK}/
| Tool | Purpose | Output |
|---|---|---|
MyST CLI (myst build) |
Build the assembled document | HTML site; can add PDF export |
| Jupytext | Convert notebooks to MyST Markdown | .md files from .ipynb |
myst build in your paper folder._build/site/public/index-*.md rendered, or serve the site).No LaTeX required.
Add an export to your myst.yml:
# Add under project: in myst.yml
exports:
- format: pdf
template: arxiv_two_column
output: exports/{BALLPARK}.pdf
Then run:
myst build --pdf
Requirements: LaTeX (e.g. MacTeX, TeX Live) or Typst must be installed. See MyST: Create a PDF.
Templates: List available templates with myst templates list --pdf. Use plain_latex_book or arxiv_two_column for a simple start.
Use Jupytext to convert each notebook to MyST Markdown:
# Convert all four notebooks to .md
jupytext --to myst {BALLPARK}_intro.ipynb
jupytext --to myst {BALLPARK}_prior-literature.ipynb
jupytext --to myst {BALLPARK}_summary.ipynb
jupytext --to myst {BALLPARK}_subsequent-literature.ipynb
This creates .md files alongside each notebook. The .md files are plain text, version-control friendly, and can be edited directly or round-tripped back to .ipynb with Jupytext.
Submit at least one of:
Include a brief note on which tool(s) you used and any issues you ran into.
.md file renders correctly and preserves citations and structuremyst build --pdf fails with “LaTeX not found”:
Jupytext produces unexpected output:
jupytext --version — you need jupytext installed (e.g. via pip install jupytext or bash scripts/setup_env.sh in ballpark)Citations missing in PDF:
self.bib, references.bib, and subsequent-literature.bib are listed in myst.yml under project: bibliography:Ask Cursor AI. If the “auto” model is inadequate, try Claude Opus 4.6 or ChatGPT 5.3.