-
DescriptionHow can pandoc's automatic-numbering as described Numbering documentation be implemented in quarto? Exercise #
Exercise #
: Text for the exercise the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Some clarifications:
Note that your example is not reproducible. There are nothing but the markup, so why do you expect Quarto to know that a filter is to be used if you don't specify it? |
Beta Was this translation helpful? Give feedback.
-
@mcanouil Many thanks for the explanations and hints. Thanks to them, I have managed to implement the advanced numbering options of the pandoc-numbering-module in Quarto. After installing ---
title: "Advanced numbering with Pandoc-numbering"
filters:
- env/bin/pandoc-numbering
---
This is a Quarto document with enhanced numbering features.
To learn more about pandoc-numbering possibilities visit <https://pandoc-numbering.readthedocs.io/en/stable/numbering.html>.
# Section 1
§ #
:
First paragraph
§ #
:
Second paragraph
# Section 2
§ #
:
First paragraph in new section (numbering continued)
§ -.#
:
First paragraph in new section (numbering reset) |
Beta Was this translation helpful? Give feedback.
Some clarifications:
pandoc-numbering
is a Python module that package a filter for Pandoc.pandoc-numbering
version is unrelated to Pandoc version or the Pandoc version used by Quarto CLI, so "The given examples do not work (at least in quarto v1.6.42, pandoc 3.5.0)" means the you've tried the filter independently of Quarto CLI using Pandoc 3.5.0 and that it does not work. If it does not work in Pandoc, there is no way it can on Quarto. If that is the case, you are in the wrong place: ask the authors of the Python library.