-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
1. waitingWaiting for user feedbackWaiting for user feedback
Description
Describe the bug
The {file} keyword is not able to generate the filename of the pdf in the capture template. It shows up for some "notes" but not for other.
To Reproduce
EDIT Notes in helm BibTeX
Expected behavior
The file name shows up in the capture template, which can then be used for org-noter
ORB configuration
;; ORG-ROAM
;;
(use-package org-roam
;:ensure t
:hook
(after-init . org-roam-mode)
:custom
(org-roam-directory "/home/cantos/Dropbox/Org/references/notes/")
:bind (:map org-roam-mode-map
(("C-c n l" . org-roam)
("C-c n f" . org-roam-find-file)
("C-c n g" . org-roam-graph))
:map org-mode-map
(("C-c n i" . org-roam-insert))
(("C-c n I" . org-roam-insert-immediate))))
(after! org-roam
(setq org-roam-ref-capture-templates
'(("r" "ref" plain (function org-roam-capture--get-point)
"%?"
:file-name "websites/${slug}"
:head "#+TITLE: ${title}
#+ROAM_KEY: ${ref}
- source :: ${ref}"
:unnarrowed t)))) ; capture template to grab websites. Requires org-roam protocol.
(use-package! org-ref
:after org
:init
; code to run before loading org-ref
:config
; code to run after loading org-ref
)
(setq org-ref-notes-directory "/home/cantos/Dropbox/Org/references/notes"
org-ref-default-bibliography '("/home/cantos/Dropbox/Org/references/library.bib")
org-ref-pdf-directory "/home/cantos/Dropbox/Zotero")
(use-package! helm-bibtex
:after org
:init
; blah blah
:config
;blah blah
)
(setq bibtex-format-citation-functions
'((org-mode . (lambda (x) (insert (concat
"\\cite{"
(mapconcat 'identity x ",")
"}")) ""))))
(use-package! org-roam-bibtex
:hook (org-roam-mode . org-roam-bibtex-mode)
:bind (:map org-mode-map
(("C-c n a" . orb-note-actions))))
(setq
bibtex-completion-pdf-field "file"
bibtex-completion-bibliography
'("~/Dropbox/Org/references/library.bib")
bibtex-completion-library-path '("~/Dropbox/Zotero")
)
(setq orb-preformat-keywords
'("citekey" "title" "url" "author-or-editor" "keywords" "file")
orb-process-file-field t
orb-process-file-keyword t
orb-file-field-extensions '("pdf"))
(setq orb-templates
'(("n" "ref+noter" plain (function org-roam-capture--get-point)
""
:file-name "${citekey}"
:head "#+TITLE: ${citekey} \n#+SUBTITLE: ${title}\n#+ROAM_KEY: ${ref} \n #+ROAM_TAGS:
- tags ::
- keywords :: ${keywords}
\* ${title}
:PROPERTIES:
:Custom_ID: ${citekey}
:URL: ${url}
:AUTHOR: ${author-or-editor}
:NOTER_DOCUMENT: ${file}
:NOTER_PAGE:
:END:")))
Environment (please complete the following information):
- ORB commit or MELPA package version
- Org Roam commit or MELPA package version
- Org Mode version
- Emacs framework Doom
- Emacs version 27.1
- OS: Fedora 33
Metadata
Metadata
Assignees
Labels
1. waitingWaiting for user feedbackWaiting for user feedback