Skip to content

Add citations feature (+ backmatter). #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

eckelmeckel
Copy link
Contributor

Fixes #205.

Adds support for citations, and introduces \beginbackmatter command to mark back matter sections. This avoids the list of references/citations (bibliography) to be part of the appendices (which is wrong, references/bibliography are no appendix).

You can write something like "The TPM 2.0 architecture [@{cite:tcg-tpm2-architecture}] describes ..." in your Markdown document which results in a clickable link (e.g., "The TPM 2.0 architecture [1] describes ...") to the references/citations list at the
end of the PDF document.

In the YAML front matter you add something like:

---
bibliography: citations.yaml
csl: transactions-on-computer-systems.csl
...

The citations.yaml may look as follows:

references:
  - id: "cite:tcg-tpm2-architecture"
    title: "Trusted Platform Module Library - Part 1: Architecture"
    author:
      - family: "(TCG)"
        given: "Trusted Computing Group"
    edition: "Family 2.0, Level 00, Revision 01.83"
    organization: "Trusted Computing Group"
    publisher: "Trusted Computing Group (TCG)"
    series: "TCG Specification"
    issued:
      year: 2024
      month: 1
      day: 25
    url: "https://trustedcomputinggroup.org/resourcetpm-library-specification/"

For the back matter, please put the \beginbackmatter command in the Markdown source and add the list of references/citations (bibliography) as follows:

\beginbackmatter

# References

::: {#refs}
:::

Adds support for citations, and introduce `\beginbackmatter` command to
mark back matter sections. This avoids the references/bibliography to be
part of the appendices (which is wrong, references/bibliography are no
appendix).

You can write something like "The TPM 2.0 architecture
[@{cite:tcg-tpm2-architecture}] describes ..." in your Markdown document
which results in a
clickable link (e.g., "The TPM 2.0 architecture [1] describes ...") to
the references/citations list at the
end of the PDF document.

In the YAML front matter you add something like:

```yaml
---
bibliography: citations.yaml
csl: transactions-on-computer-systems.csl
...
```

The `citations.yaml` may look as follows:

```yaml
references:
  - id: "cite:tcg-tpm2-architecture"
    title: "Trusted Platform Module Library - Part 1: Architecture"
    author:
      - family: "(TCG)"
        given: "Trusted Computing Group"
    edition: "Family 2.0, Level 00, Revision 01.83"
    organization: "Trusted Computing Group"
    publisher: "Trusted Computing Group (TCG)"
    series: "TCG Specification"
    issued:
      year: 2024
      month: 1
      day: 25
url:
"https://trustedcomputinggroup.org/resourcetpm-library-specification/"
```

For the back matter, please put the `\beginbackmatter` command in the
Markdown source and add the references as follows:

```md
\beginbackmatter

# References

::: {#refs}
:::
```

Signed-off-by: Michael Eckel <[email protected]>
@chrisfenner
Copy link
Member

Merging this despite the 403 on docker. Will check and fix if the issue persists.

@chrisfenner chrisfenner merged commit a385ac1 into TrustedComputingGroup:main Feb 22, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Citations and bibliography are not supported
2 participants