This extension adds term indexing functionality to quarto.
quarto add simply-logical/quarto_indexer
This will install the extension under the _extensions
subdirectory.
If you're using version control, you will want to check-in this directory.
See example.qmd for a minimal example.
LaTeX conversion can be done with:
quarto render example.qmd --to latex
{{< indexer add
'term to be indexed'
<!-- indexer optional parameters -->
idxdisplay='$\delta$ text to be displayed'
idxsortkey='delta text to be displayed'
idxsee='alternative term to be indexed'
idxnesting='top-level term ! mid-level term ! bottom-level term'
idxsuffix='custom suffix'
idxstyle=mystyle
>}}
NOTE: if you'd like to display the same term as the one being indexed,
use idxdisplay=''
(or repeat the term idxdisplay='term'
).
{{< definer
'term to be defined'
<!-- definer optional parameters -->
defstyle=mystyle
defindex='term to be indexed'
<!-- indexer optional parameters -->
idxsortkey='delta text to be displayed'
idxsee='alternative term to be indexed'
idxnesting='top-level term ! mid-level term ! bottom-level term'
idxsuffix='custom suffix'
idxstyle=mystyle
>}}
NOTE: if you'd like to index the same term as the one being displayed,
use defindex=''
(or repeat the term defindex='term'
).
- See the AST documentation.
- An extension for assigning index terms to parent elements (e.g., section, example box)
- An extension for custom collection lists (one command for collecting terms and another for displaying their list)
- An extension for custom boxes (e.g., background, exercise); maybe have paired boxes (e.g., linked exercise and solution boxes)
- An extension for custom (numbered) environments (e.g., definition, theorem, example)
- An extension for assigning custom tags to parent elements
(e.g.,
difficulty:easy
,difficulty:medium
,difficulty:hard
to [sub]sections, exercises, etc.); maybe have lists/hierarchy of tags