Create a LaTeX template that works with MyST Markdown, π full tutorial is here π.
This cookiecutter repository helps you get setup with creating a jtex
template for working with MyST Markdown.
pip install cookiecutter
cookiecutter gh:myst-templates/jtex-template
You can also choose to fork this repository, and replace the templated values in all files!
- π
cookiecutter gh:myst-templates/jtex-template
(or fork this repository, and update the template values) - π Replace the
template.tex
with your existing LaTeX template/article - π―ββοΈ Copy in any other style, definitions or images necessary for the template
- π©βπ¬ Add the files necessary into
files
list in thetemplate.yml
(documentation) - π§ββοΈ Start replacing template values with
[-options.my_value-]
and put in[# if parts.abstract #]
conditions to toggle sections on and off (documentation) - π©πΏβπ» Install jtex (
npm install -g jtex
) and runjtex check
(documentation) - πͺ Continue to improve the options in your template for
parts
andoptions
(documentation) - πΎ When ready, save your
template.yml
and runjtex check --fix
, this will add various packages that are auto detected and fix document options (documentation) - π§ͺ Test with real content:
myst build my-document.md --template ../path/to/template
(documentation) - πΈ Create a
thumbnail.png
with an accurate screenshot of the template - π§ Update this README, and check all values in the
template.yml
- π Push to GitHub, and contribute to the community templates repository