jkitchin / org-ref-cite

An org-cite processor that is like org-ref.
42 stars 6 forks source link

Citation in footnote not expanded/exported to LaTeX #22

Closed ebouna closed 3 years ago

ebouna commented 3 years ago

I tried to insert a citation in a footnote. Unfortunately, when exporting to pdf (via LaTeX) the citation is ignored, i.e., it is left out and does not appear in the pdf and the preceding LaTeX output. Is there a way to make references appear in the footnotes or is there rather a mistake in my set up of org-ref-cite? Thanks in advance for you help.

The following text in Orgmode markup

grafik

is exported to LaTeX as:

grafik

My Org-ref-cite set up is as follows:

;;======Org-ref-cite===========
(use-package ivy-bibtex
  :init
  (setq bibtex-completion-bibliography '("~/elisp/org-ref-cite/references_2021_09_05.bib")
    bibtex-completion-notes-path "~/elisp/org-ref-cite/notes"
    bibtex-completion-notes-template-multiple-files "#+TITLE: Notes on: ${author-or-editor} (${year}): ${title}\n\nSee [cite/t:@${=key=}]\n"
    bibtex-completion-library-path '("~/elisp/org-ref-cite/bibtex-pdfs/")
    bibtex-completion-additional-search-fields '(keywords)
    bibtex-completion-display-formats
    '((article       . "${=has-pdf=:1}${=has-note=:1} ${year:4} ${author:36} ${title:*} ${journal:40}")
      (inbook        . "${=has-pdf=:1}${=has-note=:1} ${year:4} ${author:36} ${title:*} Chapter ${chapter:32}")
      (incollection  . "${=has-pdf=:1}${=has-note=:1} ${year:4} ${author:36} ${title:*} ${booktitle:40}")
      (inproceedings . "${=has-pdf=:1}${=has-note=:1} ${year:4} ${author:36} ${title:*} ${booktitle:40}")
      (t             . "${=has-pdf=:1}${=has-note=:1} ${year:4} ${author:36} ${title:*}"))
    bibtex-completion-pdf-open-function
    (lambda (fpath)
      (call-process "open" nil 0 nil fpath))))

(use-package citeproc)

(use-package oc
  :load-path "~/elisp/org-mode/lisp"
  :config

  (require 'oc-biblatex))

(add-to-list 'load-path "~/elisp/org-ref-cite/")

;;ensures oc-csl uses local variants of styles
(setq org-cite-csl-locales-dir "~/locales")

(use-package org-ref-cite
  :load-path "~/elisp/org-ref-cite/"
  :config
  ;; I like green links
  (set-face-attribute 'org-cite nil :foreground "DarkSeaGreen4")
  (set-face-attribute 'org-cite-key nil :foreground "forest green")
  (setq
   org-cite-global-bibliography bibtex-completion-bibliography
   ;; https://github.com/citation-style-language/styles
   ;; or https://www.zotero.org/styles
   org-cite-csl-styles-dir "~/elisp/org-ref-cite/csl-styles"
   org-cite-insert-processor 'org-ref-cite
   org-cite-follow-processor 'org-ref-cite
   org-cite-activate-processor 'org-ref-cite
   org-cite-export-processors '((html csl "chicago-author-date-16th-edition.csl");;  
                    (latex biblatex)
                    (t basic)))

  (define-key org-mode-map (kbd "C-c \\") 'org-cite-insert))

(setq  flyspell-duplicate-distance 0
       flyspell-mark-duplications-flag nil
       warning-minimum-level :error)

;;===Ivy configuration: Activating ivy-mode===
(ivy-mode 1)

(setq ivy-use-virtual-buffers t)
(setq ivy-count-format "(%d/%d) ")
jkitchin commented 3 years ago

If I had to guess, this is a limitation in org-cite. You should ask about it on the mailing list.

ebouna commented 3 years ago

I wrote to the list as you suggested. Thanks for your advice. I am waiting now for an answer the helps to solves the issue.

jkitchin commented 3 years ago

I think this is an issue to be solved in org-mode, not in this package.