This repository contains IB Economics revision material for all 4 units of the curriculum, plus helper scripts for generating economics diagrams and compiling the detailed notes into PDF.
IB_Economics_Topics_Units2-4.md: topic checklist / revision outline.IB_Economics_DETAILED_Units2-4.md: detailed notes source used for PDF export.generate_graphs.py: generates all economics diagrams as PNG files.generate_graphs_live.py: runs selected diagrams and supports live watch mode.generate_command.txt: examplepandoccommand for compiling the detailed notes into PDF.COMPILE_TOOL_GUIDE.md: short setup guide for the PDF compile toolchain.
pandoc- A LaTeX engine with
xelatexavailable on your PATH
This repo's compile command uses:
--pdf-engine=xelatexGeorgia,Segoe UI, andConsolasas fonts
If those fonts are missing, either install them or change the font flags in generate_command.txt.
- Python 3
- Packages from
requirements.txt
Install Python packages with:
pip install -r requirements.txtThe example compile command is stored in generate_command.txt.
On Windows PowerShell, run the equivalent command from the repository root:
pandoc "IB_Economics_DETAILED_Units2-4.md" `
--pdf-engine=xelatex `
--number-sections `
-V documentclass=report `
-V fontsize=11pt `
-V linestretch=1.2 `
-V geometry:margin=1in `
-V mainfont="Georgia" `
-V sansfont="Segoe UI" `
-V monofont="Consolas" `
-V colorlinks=true `
-V linkcolor=black `
-V urlcolor=black `
-V citecolor=black `
-o "IB_Economics_DETAILED_Units2-4.pdf"If pandoc or xelatex is not installed yet, use the setup steps in COMPILE_TOOL_GUIDE.md.
Generate all diagrams:
python3 generate_graphs.pyList available diagram names:
python3 generate_graphs_live.py --listRender one diagram:
python3 generate_graphs_live.py --only 2_3a_market_equilibriumWatch one diagram and re-render on save:
python3 generate_graphs_live.py --watch --only 2_3a_market_equilibriumgenerate_graphs.pycurrently writes output to theOUT_DIRpath defined inside the script.generate_graphs_live.pycan override the output folder with--out-dir.