From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: feature request: export page of pdf in latex Date: Sun, 23 Feb 2014 18:46:32 -0500 Message-ID: References: <8761o5h7m2.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d7c80f3057e04f31b761b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHikl-0001A0-3q for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 18:46:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHikj-0000lI-U6 for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 18:46:35 -0500 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]:54017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHikj-0000l9-M3 for emacs-orgmode@gnu.org; Sun, 23 Feb 2014 18:46:33 -0500 Received: by mail-pd0-f178.google.com with SMTP id fp1so5578980pdb.9 for ; Sun, 23 Feb 2014 15:46:32 -0800 (PST) In-Reply-To: <8761o5h7m2.fsf@med.uni-goettingen.de> 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: Andreas Leha Cc: "emacs-orgmode@gnu.org" --047d7b6d7c80f3057e04f31b761b Content-Type: text/plain; charset=ISO-8859-1 you can do this with a filter, and conditional handling. I did something like this at http://kitchingroup.cheme.cmu.edu/blog/2013/09/28/Changing-links-to-files-so-they-work-in-a-blog/where file links were handled differently depending on whether the file link had content or not. you could do something similar. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Sun, Feb 23, 2014 at 3:55 PM, Andreas Leha < andreas.leha@med.uni-goettingen.de> wrote: > Hi all, > > there is the nice functionality in docview links, where > [[docview:papers/last.pdf::2]] will open the second page of the given > pdf. > > Would it be hard to make [[file:papers/last.pdf::2]] export the second > page of the pdf to latex? I.e. to export to something like > \includegraphics[page=2]{papers/last.pdf}? > > > Regards, > Andreas > > > --047d7b6d7c80f3057e04f31b761b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
you can do this with a filter, and conditional handling. I= did something like this at http://kitch= ingroup.cheme.cmu.edu/blog/2013/09/28/Changing-links-to-files-so-they-work-= in-a-blog/ where file links were handled differently depending on wheth= er the file link had content or not. you could do something similar.

John

-------= ----------------------------
John Kitchin
Associate Professor
Dohe= rty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Uni= versity
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Sun, Feb 23, 2014 at 3:55 PM, Andreas= Leha <andreas.leha@med.uni-goettingen.de> = wrote:
Hi all,

there is the nice functionality in docview links, where
[[docview:papers/last.pdf::2]] will open the second page of the given
pdf.

Would it be hard to make [[file:papers/last.pdf::2]] export the second
page of the pdf to latex? =A0I.e. to export to something like
\includegraphics[page=3D2]{papers/last.pdf}?


Regards,
Andreas



--047d7b6d7c80f3057e04f31b761b--