pandoc-crossref
pandoc-crossref copied to clipboard
Custom label prefixes
Moved from #83
Additionaly, it could be useful to define additional prefixes and their renderings, so I could define app -> app. as a mapping from the app prefix to the Appendix rendering.
Proposed syntax:
Definition in YAML metadata:
prefixes:
dfn:
ref: ["dfn.", "dfns."]
name: "Definition"
cl:
ref: ["cl.", "cls."]
scope: ["dfn"]
Reference-able items:
<div id="dfn:ring">
A _ring_ is a triple $(R,+,*)$ satisfying:
#. [$+$ is an abelian group]{#cl:addgp}
#. [$*$ is a monoid]{#cl:multmon}
#. [$*$ distributes over $+$]{#cl:distrib}
</div>
Related: #114, #124, #113, #111, #104
If there is a style that requires "photos" and "figures" to be labelled differently and listed in different lists, would solving this issue enable the user to do that?
@ilmaisin, yes, probably.