diff options
author | Kyle Meyer <kyle@kyleam.com> | 2021-12-11 12:31:13 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2021-12-11 12:31:13 -0500 |
commit | 30dd5c9acc3b3b95ef784549b5e3ff8136a23854 (patch) | |
tree | dd4b87907d5c26b870f8961f7b27d4704887a990 /lisp/org/oc-csl.el | |
parent | a37484992651fa6bdee9d5181fb6b096dbf41426 (diff) | |
download | emacs-30dd5c9acc3b3b95ef784549b5e3ff8136a23854.tar.gz emacs-30dd5c9acc3b3b95ef784549b5e3ff8136a23854.tar.bz2 emacs-30dd5c9acc3b3b95ef784549b5e3ff8136a23854.zip |
Update to Org 9.5.1-25-g9ca3bc
Diffstat (limited to 'lisp/org/oc-csl.el')
-rw-r--r-- | lisp/org/oc-csl.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org/oc-csl.el b/lisp/org/oc-csl.el index 7f078d139b1..a92ea8a63e8 100644 --- a/lisp/org/oc-csl.el +++ b/lisp/org/oc-csl.el @@ -605,10 +605,10 @@ property list." (with-temp-buffer (save-excursion (insert output)) (when (search-forward "\\begin{document}" nil t) - ;; Ensure that \citeprocitem is defined for citeproc-el + (goto-char (match-beginning 0)) + ;; Ensure that \citeprocitem is defined for citeproc-el. (insert "\\makeatletter\n\\newcommand{\\citeprocitem}[2]{\\hyper@linkstart{cite}{citeproc_bib_item_#1}#2\\hyper@linkend}\n\\makeatother\n\n") ;; Ensure there is a \usepackage{hanging} somewhere or add one. - (goto-char (match-beginning 0)) (let ((re (rx "\\usepackage" (opt "[" (*? nonl) "]") "{hanging}"))) (unless (re-search-backward re nil t) (insert "\\usepackage[notquote]{hanging}\n")))) |