From mboxrd@z Thu Jan 1 00:00:00 1970 From: D M German Subject: Re: protocol for PDFs? Date: Sat, 02 Jan 2010 12:17:05 -0800 Message-ID: <861vi8l0se.fsf@mn.cs.uvic.ca> References: <86oclclxlt.fsf@mn.cs.uvic.ca> <4b3f6446.0706c00a.4384.ffff8055@mx.google.com> <4B3F9D2A.4050408@jboecker.de> Reply-To: dmg@uvic.ca Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NRAPP-0002WY-8Y for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 15:17:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NRAPK-0002Vy-LV for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 15:17:10 -0500 Received: from [199.232.76.173] (port=60416 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NRAPK-0002Vv-I9 for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 15:17:06 -0500 Received: from sulfur.cs.uvic.ca ([142.104.68.220]:48683 helo=mn.cs.uvic.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NRAPK-0000V3-0k for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 15:17:06 -0500 In-Reply-To: <4B3F9D2A.4050408@jboecker.de> ("Jan =?utf-8?Q?B=C3=B6cker=22?= =?utf-8?Q?'s?= message of "Sat, 02 Jan 2010 20:23:22 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jan =?utf-8?Q?B=C3=B6cker?= Cc: emacs-orgmode@gnu.org Jan B=C3=B6cker 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 p= refer >> 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-d= ev 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 thinki= ng 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=3Ddetail&aid=3D2924825&group_id=3D163= 434&atid=3D827735 The format is --page=3D%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 m= e, 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 --=20 -- Daniel M. German=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .