Skip to content

Commit

Permalink
Merge pull request #128 from andras-simonyi/Improve_Org-LaTeX_formatter
Browse files Browse the repository at this point in the history
Improve the Org-LaTeX formatter
  • Loading branch information
andras-simonyi authored Dec 11, 2022
2 parents 32e61f5 + b28fe29 commit 20aec82
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions citeproc-formatters.el
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,8 @@ CSL tests."
(href . ,#'citeproc-fmt--latex-href)
(font-style-italic . ,(lambda (x) (concat "\\textit{" x "}")))
(font-weight-bold . ,(lambda (x) (concat "\\textbf{" x "}")))
(cited-item-no . ,(lambda (x y) (concat "\\citeprocitem{" y "}{" x "}")))
(bib-item-no
. ,(lambda (x y) (concat "\\leavevmode\\vadjust pre{\\hypertarget{citeproc_bib_item_"
y "}{}}%\n" x)))
(cited-item-no . ,(lambda (x y) (concat "\\cslcitation{" y "}{" x "}")))
(bib-item-no . ,(lambda (x y) (concat "\\cslbibitem{" y "}{" x "}")))
(font-variant-small-caps . ,(lambda (x) (concat "\\textsc{" x "}")))
(text-decoration-underline . ,(lambda (x) (concat "\\underline{" x "}")))
(vertical-align-sup . ,(lambda (x) (concat "\\textsuperscript{" x "}")))
Expand All @@ -304,9 +302,9 @@ CSL tests."
(entry-spacing (if (and .entry-spacing (<= 1 .entry-spacing))
(number-to-string (- .entry-spacing 1))
"0")))
(concat "\\begin{citeprocbib}{" hanging-indent "}{" entry-spacing "}\n"
(concat "\\begin{cslbibliography}{" hanging-indent "}{" entry-spacing "}\n"
(mapconcat #'identity items "\n\n")
"\n\n\\end{citeprocbib}\n"))))
"\n\n\\end{cslbibliography}\n"))))

;; Org-ODT

Expand Down

0 comments on commit 20aec82

Please sign in to comment.