marcel-hofer / markdown-document

Converts markdown files to PDF documents using HTML templates.
https://marcel-hofer.github.io/markdown-document/
MIT License
3 stars 2 forks source link

List of references / source materials #16

Open HoracePGreeley opened 6 years ago

HoracePGreeley commented 6 years ago

Due to university needs, a list of references is required for documents.

marcel-hofer commented 6 years ago

This is already partly possible, but it has not been tested, nor will it work. Using Captions you should already be able to add custom captions like:

> Some awesome quote
@(caption citation:My own quote, ...)

The document layout will print these captions when adding the following configuration to the document.json:

{
  ...,
  "pdf": {
    "parts": {
      "content": {
        "data": {
          "captions": ["table", "figure", "code", "formula", "citation"]
        }
      }
    }
  },
  "translations": {
    "Captions": {
      "citation": { "Title": "Title for the caption listing", "Abbreviation": "Abbreviation inserted at @(caption.. position" }
    }
  }
}

TODO: