[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: pdf page numbers in links are ignored when exporting to lat
From: |
Nicolas Goaziou |
Subject: |
Re: [O] 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 |
Hello,
Moritz Kiefer <address@hidden> 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