From: D M German <dmg@uvic.ca>
To: "Jan Böcker" <jan.boecker@jboecker.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: protocol for PDFs?
Date: Sat, 02 Jan 2010 12:17:05 -0800 [thread overview]
Message-ID: <861vi8l0se.fsf@mn.cs.uvic.ca> (raw)
In-Reply-To: <4B3F9D2A.4050408@jboecker.de> ("Jan Böcker"'s message of "Sat, 02 Jan 2010 20:23:22 +0100")
Jan Böcker twisted the bytes to say:
Jan> On 02.01.2010 16:20, Darlan Cavalcante Moreira wrote:
>> Evince also has an option ("-p") to open the file in a
>> given page and this would be enough for a link to a PDF file. Since I prefer
>> using Evince instead of docview mode I would be very happy to test it.
Jan> I have implemented an experimental version of org-docview.el which
Jan> allows you to specify an external PDF viewer. Check out the docview-dev
Jan> branch at
Jan> http://github.com/jboecker/org-mode
Jan> To test this, pull from there or apply the following patch, then:
Jan> M-x customize-variable org-docview-pdf-app
Jan> Set it to "evince %s -p %p" and docview: links to PDF files should now
Jan> open in evince. There may still be bugs lurking here, and I am thinking
Jan> about generalizing this to use a variable org-docview-apps which would
Jan> behave like org-file-apps.
Great. I have now a patch for xournal that supports page numbers from
the command line:
https://sourceforge.net/tracker/?func=detail&aid=2924825&group_id=163434&atid=827735
The format is --page=%p or -p %p
It is likely to make it into xournal. I am now adding an option to use
org-protocol to create the link from xournal. more later.
--dmg
Jan> This would duplicate functionality of file: links again, which bugs me,
Jan> but on the other hand it would be difficult to reuse org-file-apps for
Jan> this, as I suggested in my previous email -- when opening a file: link
Jan> to a PDF, the %p would not get replaced and may confuse the PDF viewer
Jan> application :(
Jan> Also, YAGNI may apply here if nobody uses docview: links to link to
Jan> non-PDF files anyway.
Jan> -----------
Jan> new experimental variable: org-docview-pdf-app
Jan> External application to open docview: links pointing to a pdf file.
Jan> Possible values:
'emacs: Visit the file with emacs using doc-view-mode.
string: An external PDF viewer application.
%s will be replaced by the file name.
%p will be replaced by the page number.
Example:
evince %s -p %p
--
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
prev parent reply other threads:[~2010-01-02 20:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 8:28 protocol for PDFs? D M German
2010-01-02 15:16 ` Jan Böcker
2010-01-02 20:07 ` D M German
2010-01-02 21:17 ` D M German
[not found] ` <86bphbhbmh.fsf@mn.cs.uvic.ca>
2010-01-04 16:09 ` Sebastian Rose
2010-01-02 15:20 ` Darlan Cavalcante Moreira
2010-01-02 19:23 ` Jan Böcker
2010-01-02 20:17 ` D M German [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=861vi8l0se.fsf@mn.cs.uvic.ca \
--to=dmg@uvic.ca \
--cc=emacs-orgmode@gnu.org \
--cc=jan.boecker@jboecker.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).