Skip to content

Commit

Permalink
Add function to report when a style produces superscript cites
Browse files Browse the repository at this point in the history
  • Loading branch information
andras-simonyi committed May 5, 2024
1 parent 6e6068b commit 3cc05b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions citeproc-style.el
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ position and before the (possibly empty) body."
"Return whether csl STYLE is a note style."
(string= (citeproc-style-category style) "note"))

(defun citeproc-style-cite-superscript-p (style)
"Return whether csl STYLE has a superscript citaton layout."
(string= (alist-get 'vertical-align (citeproc-style-cite-layout-attrs style))
"sup"))

(defun citeproc-style-global-opts (style layout)
"Return the global opts in STYLE for LAYOUT.
LAYOUT is either `bib' or `cite'."
Expand Down

0 comments on commit 3cc05b9

Please sign in to comment.