From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: pdf page numbers in links are ignored when exporting to latex [8.2.7b (8.2.7b-13-gd8a0ee-elpa @ /home/moritz/.emacs.d/elpa/org-20140728/)] Date: Wed, 30 Jul 2014 22:30:58 +0200 Message-ID: <87silir3lp.fsf@nicolasgoaziou.fr> References: <87silj7vqg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCaW3-0008Jh-LI for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 16:30:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCaVt-00036W-9G for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 16:30:27 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:53883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCaVt-00036O-20 for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 16:30:17 -0400 In-Reply-To: <87silj7vqg.fsf@gmail.com> (Moritz Kiefer's message of "Tue, 29 Jul 2014 22:31:19 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Moritz Kiefer Cc: emacs-orgmode@gnu.org Hello, Moritz Kiefer writes: > I have lots of links to specific pages in a pdf like > [[filename.pdf::24]] which works fine (with a correctly configured > org-file-apps) but when I export to latex the page number is ignored and > the includegraphics directive includes the first page. This can > obviously manually be changed using #+ATTR_LATEX: :options page=42 but > as the page number is already there it would be nice if orgmode would > automatically use that when exporting. Good idea. Page number can be accessed with (org-element-property :search-option link) However, it should be checked against "\\`[0-9]+\\'" since a search option can also be a headline: [[file:test.org::*My headline]] Also, I guess it should only apply to link to pdf files. Do you want to provide a patch for that? Regards, -- Nicolas Goaziou