Skip to content

Commit

Permalink
Adding pandoc-secnos to the build environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Apr 11, 2022
1 parent 9a22fab commit e923638
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ For example, the following will override the figure number to be "S1" and set th

We recommend always specifying the width of SVG images (even if just `width="100%"`), since otherwise SVGs may not render properly in the [WeasyPrint](https://weasyprint.org/) PDF export.

### Sections

Manubot supports section references, as provided by the [`pandoc-secnos`](https://github.com/tomduck/pandoc-secnos) library.
Adding an anchor to a section header with `{#sec:section-name}` makes it available for citation using `@sec:section-name` inline in the text.

### Citations

Manubot supports [Pandoc citations](https://pandoc.org/MANUAL.html#citations), but with added support for citing persistent identifiers directly.
Expand Down
1 change: 1 addition & 0 deletions build/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencies:
- opentimestamps==0.4.1
- pandoc-eqnos==2.5.0
- pandoc-fignos==2.4.0
- pandoc-secnos==2.2.2
- pandoc-tablenos==2.3.0
- pandoc-xnos==2.5.0
- pandocfilters==1.5.0
Expand Down
1 change: 1 addition & 0 deletions build/pandoc/defaults/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ input-file: output/manuscript.md
filters:
- pandoc-fignos
- pandoc-eqnos
- pandoc-secnos
- pandoc-tablenos
- pandoc-manubot-cite
- citeproc
Expand Down

0 comments on commit e923638

Please sign in to comment.