* open pdfs in subdirectories in org-ref
@ 2016-09-23 16:07 童俊翔
2016-09-24 2:11 ` Adam Porter
0 siblings, 1 reply; 2+ messages in thread
From: 童俊翔 @ 2016-09-23 16:07 UTC (permalink / raw)
To: Org mode
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
I want to open pdfs in subdirectories in org-ref as described as
https://github.com/jkitchin/org-ref/issues/172
my .emacs is configued as following
(setq org-ref-open-pdf-function 'my/org-ref-open-pdf-at-point)
(defun my/org-ref-open-pdf-at-point ()
"Open the pdf for bibtex key under point if it exists."
(interactive)
(let* ((results (org-ref-get-bibtex-key-and-file))
(key (car results))
(pdf-file (funcall org-ref-get-pdf-filename-function key))
(pdf-other (bibtex-completion-find-pdf key)))
(cond ((file-exists-p pdf-file)
(org-open-file pdf-file))
(pdf-other
(org-open-file pdf-other))
(message "No PDF found for %s" key))))
But I failed. What is the problem? Thank you for your help!
[-- Attachment #2: Type: text/html, Size: 2915 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: open pdfs in subdirectories in org-ref
2016-09-23 16:07 open pdfs in subdirectories in org-ref 童俊翔
@ 2016-09-24 2:11 ` Adam Porter
0 siblings, 0 replies; 2+ messages in thread
From: Adam Porter @ 2016-09-24 2:11 UTC (permalink / raw)
To: emacs-orgmode
童俊翔 <tongjunxiang@gmail.com> writes:
> But I failed. What is the problem? Thank you for your help!
We need you to be more descriptive than "But I failed." What exactly
happens?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-24 3:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-23 16:07 open pdfs in subdirectories in org-ref 童俊翔
2016-09-24 2:11 ` Adam Porter
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).