myst-templates / templates

List of all MyST Markdown community templates.
https://api.mystmd.org/templates
3 stars 1 forks source link

MyST Templates

A community curated collection of MyST Markdown compatible templates. These templates allow myst to export markdown files as typeset, formatted documents using PDF, LaTeX or Word. Templates can expose data-driven options for customization ensuring the final documents comply with author submission guidelines provided by a particular journal, conference organizer or university.

This repository:

Contributing a LaTeX Template

To add a new LaTeX template, fork this repo, and modify tex.yml, the new template should be added as a new entry in the listing:

templates:
  - organization: myst
    name: agu2019
    source: https://github.com/myst-templates/agu2019
    latest: main

Once you've made your change, open a PR.

Contributing a Docx Template

Docx templating currently requires a dynamic rendering function using docx passed directly to mystjs. However, data-driven options specified by a template.yml are still passed to this renderer. These may be added at docx.yml, similar to LaTeX template.

Fork this repo, make your change and open a PR.

Development

Install the mini CLI tool using npm install and npm run dev (puts this in watch mode, so you can kill after the output is complete). Then call myst-templates-api index data/tex.yml from the main folder, which will create an index file and update the organization Readme.