pandoc-crossref icon indicating copy to clipboard operation
pandoc-crossref copied to clipboard

Custom label prefixes

Open lierdakil opened this issue 7 years ago • 3 comments

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>

lierdakil avatar Aug 31 '16 00:08 lierdakil

Related: #114, #124, #113, #111, #104

lierdakil avatar Sep 14 '17 05:09 lierdakil

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 avatar Feb 25 '18 15:02 ilmaisin

@ilmaisin, yes, probably.

lierdakil avatar Apr 03 '18 04:04 lierdakil