New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF always opens on p. 1! #10
Comments
Unfortunately I won't be able to test this until the weekend, so until then I will try to guess what the problem is ;) Your elisp for emacs looks like you are missing some backslashes inside the strings, e.g.
here you only have
|
I have no idea, why the code was copied from my .emacs without double backlashes, but the lines in my .emacs are: (eval-after-load 'org '(require 'org-pdfview))
(delete '("\\.pdf\\'" . default) org-file-apps)
(add-to-list 'org-file-apps '("\\.pdf\\'" . org-pdfview-open))
(add-to-list 'org-file-apps '("\\.pdf::\\([[:digit:]]+\\)\\'" . org-pdfview-open)) If org-pdfview should open PDF on the given page, I'll search in my installation for the error. |
At least for me it worked. As said above I can't test it currently so I can come back to you on the weekend unless you find an error in your installation. |
Did it work for you with current orgmode installation? |
Well... I have to admit that I totally forgot about that during the weekend, sorry! I will make sure to test this on Thursday. |
Just tested it and it works here. Not sure why it does not work for you, but you might want to jump to |
OK, I get a message: |
Now idea where that comes from. Do you see that while debugging or while opening a link? |
I open org-pdfview.el and type |
And if you then step through the code and inspect what the bound value of On Fri, Apr 15, 2016 at 3:39 PM, Keks-Dose notifications@github.com wrote:
|
Took some minutes. Point inside org-pdfview.el to |
Hard to say what is the issue here. You could try to start emacs as |
OK, I'll restart with a clean .emacs and see. Thank you for your help! |
Pablo S. Casas published a solution on the emacs-orgmode mailinglist on July, 24. My initial setup, which did not work with Emacs 24.5 and orgmode 8.2 / 8.3:
Setup now and working (PDF opened on a given page):
Unfortunately there is no more "sexp" case in `org-file-apps' in development version, as the maintainer wrote in the next post. So the whole thing will be back on the agenda with the next major update of orgmode. But for the time being I close the question. |
For anyone looking to get this working with orgmode version 9.0. Use: |
Hi!
Linux, Orgmode 8.3.4, org-file with many links.
I'd like to
The link is something like: [[./localfile.pdf::5][Description]]
Result: PDF is being opened, but always on p. 1 instead of e.g. page 5!
.emacs:
(eval-after-load 'org '(require 'org-pdfview))
(delete '(".pdf'" . default) org-file-apps)
(add-to-list 'org-file-apps '(".pdf'" . org-pdfview-open))
(add-to-list 'org-file-apps '(".pdf::([[:digit:]]+)'" . org-pdfview-open))
What am I doing the wrong way?
Same setup works under windows with other viewer. So probably there is an
error in those lines above. Any hints? -- Thank you!
The text was updated successfully, but these errors were encountered: