org-ref icon indicating copy to clipboard operation
org-ref copied to clipboard

Org-ref-refproc symbols function definition is void

Open aminevsaziz opened this issue 3 years ago • 9 comments

I'm trying to export into docx format using pandoc. However, each time I face the same error. My workflow is the following:

  1. Some org tables cross referencing and some text (with #+title attribute only) and citations no latex at all.
  2. Run org-ref-export/body and choose refproc.
  3. Same Error each time.
  4. Tried reinstall clean install of everything nothing changed. Any solutions?

aminevsaziz avatar Jan 14 '22 19:01 aminevsaziz

what is the error you see? Can you post a small example that illustrates the issue?

jkitchin avatar Jan 14 '22 22:01 jkitchin

Screenshot_20220114_235020

@jkitchin please a look! my config is the following:


(use-package! org-ref
    :after org
    :init
    ;:after org-roam
    ;;(setq org-export-before-parsing-hook nil)
    :config
    (setq
      bibtex-completion-bibliography '("~/dotfiles/org/bibtex/zotlib.bib")
      ;;bibtex-completion-bibliography '((concat bibtex_path "zotlib.bib"))
      bibtex-completion-library-path '("~/dotfiles/org/literature/")
      bibtex-completion-notes-path "~/dotfiles/org/notes/"
      bibtex-completion-notes-template-multiple-files "* ${author-or-editor}, ${title}, ${journal}, (${year}) :${=type=}: \n\nSee [[cite:&${=key=}]]\n"
    )
)


(use-package! org-roam-bibtex
  :after org-roam
  :init
  :config
  (require 'org-ref)
  (setq 
      org-roam-directory "~/dotfiles/org/notes/" 
      org-cite-csl-styles-dir "~/dotfiles/org/bibtex/styles/"
  )
  (setq org-roam-capture-templates '(
    ;;
    ("d" "default" plain "%?"
     :if-new
     (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
      "#+title: ${title}\n#+filetags: \n\n ")
     :unnarrowed t)
     ;;
    ("r" "bibliography reference" plain "%?"
        :if-new: 
        (file+head "${citekey}.org" 
                   "#+TITLE: ${=key=}: ${title} \n#+ROAM_KEY: cite:${=key=} \n#+ROAM_TAGS: \n
                    * keywords :: ${keywords} \n
                      * ${title}\n
                    :PROPERTIES:\n
                  :Custom_ID: ${=key=} \n
                  :URL: ${url} \n
                  :DOI: ${doi} \n
                  :AUTHOR: ${author-or-editor} \n
                  :NOTER_DOCUMENT: %(orb-process-file-field \${=key=}\) \n
                  :NOTER_PAGE: \n
                  :END: \n\n") 
      :unnarrowed t)
  ;;
    ("d" "definition" plain "%?"
     :if-new
     (file+head "${slug}.org" "#+title: ${title}\n#+filetags: definition \n\n* Definition\n\n\n* Examples\n")
     :unnarrowed t)
     ;;
    ("g" "guess" plain "%?"
       :if-new
       (file+head "${citekey}.org"
       "#+title: ${slug}: ${title}\n\n
       #+filetags: reference ${keywords} \n\n
       * ${title}\n\n\n
        * Summary\n\n\n
          * Rough note space\n")
      :unnarrowed t))
  )
)

aminevsaziz avatar Jan 14 '22 22:01 aminevsaziz

@jkitchin any hint for solving this issue ?

aminevsaziz avatar Jan 15 '22 13:01 aminevsaziz

Have a little patience. It looks like you have not loaded the org-ref-refproc library. See if you can build the org-file at https://github.com/jkitchin/org-ref/blob/master/examples/refproc.org#html, following the directions at that link.

jkitchin avatar Jan 15 '22 14:01 jkitchin

Have a little patience. It looks like you have not loaded the org-ref-refproc library. See if you can build the org-file at https://github.com/jkitchin/org-ref/blob/master/examples/refproc.org#html, following the directions at that link.

@jkitchin thank you for your reply and I did what you suggest yet the same error keep popping up !

aminevsaziz avatar Jan 15 '22 15:01 aminevsaziz

@jkitchin any thing new?

aminevsaziz avatar Jan 17 '22 06:01 aminevsaziz

I guess something is wrong with your installation. If you get that error when running the code block at https://github.com/jkitchin/org-ref/blob/master/examples/refproc.org#html, then something is not getting loaded right. If you look in the library org-ref-refproc, do you see that funtion defined: https://github.com/jkitchin/org-ref/blob/master/org-ref-refproc.el#L452?

jkitchin avatar Jan 18 '22 14:01 jkitchin

I guess something is wrong with your installation. If you get that error when running the code block at https://github.com/jkitchin/org-ref/blob/master/examples/refproc.org#html, then something is not getting loaded right. If you look in the library org-ref-refproc, do you see that funtion defined: https://github.com/jkitchin/org-ref/blob/master/org-ref-refproc.el#L452?

Thank you. I guess you should explain a bit some stuff like how to look into library? I think I'm missing something here because When I call functions from org-ref everything is fine.

aminevsaziz avatar Jan 19 '22 06:01 aminevsaziz

You type M-x find-library

then at the prompt type: org-ref-refproc

that should open the library. The function you are having trouble with is at the bottom of that file. If it is there, try typing:

M-x eval-buffer

that will load everything there, and it should not have any errors.

then try your export again.

jkitchin avatar Jan 19 '22 13:01 jkitchin