From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Reverse lookup from pdf to org? Date: Thu, 27 Mar 2014 10:12:20 +0100 Message-ID: References: <871txqgla1.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT6MR-0006BM-1i for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 05:12:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WT6ML-000267-2H for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 05:12:30 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:49002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT6MK-000260-T7 for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 05:12:25 -0400 Received: by mail-wg0-f44.google.com with SMTP id m15so2211257wgh.15 for ; Thu, 27 Mar 2014 02:12:24 -0700 (PDT) In-Reply-To: (Brett Viren's message of "Tue, 25 Mar 2014 16:29:27 -0400") 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: Brett Viren Cc: Nick Dokos , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Brett Viren writes: > Nick Dokos writes: > >> One more (half-)possibility is as follows: produce the tex file and >> compile it not with pdflatex, but with plain latex, producing a DVI >> file. Passing the -src option to the latex invocation inserts "source >> specials" into the DVI file that some DVI viewers (in particular, xdvi) >> can interpret to jump back from the DVI view to the (approximate) >> corresponding location in the tex file: >> >> latex --shell-escape -src foo.tex >> xdvi foo.dvi > > Okay, here is a crazy idea. Maybe one can use hyperref and place \url{} > and/or \href{}{} macros in the org file. These will turn into clickable > links in the final PDF. In them place URLs that look like: I like the idea of reverse links - could be a nice addition when enabled. > > file:///path/to/foo.tex.orglink?line=3D42 > > And then use .mailcap (or whatever MIME config that xpdf/evince/etc > honors) to map the .orglink extension to a script that parses the URL > (does that full URL get passed?) and invokes emacs to open foo.tex at > line 42? But jumping to the .org file would be the aim - right? > > If that much can be made to work (big if!) I see one problem in that the > /path/to will break if the source is moved. That would not be a problem, as this would primarily be a debugging / draft feature. > > Chance of success: 10% I guess higher? Rainer > > -Brett. =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTM+t0AAoJENvXNx4PUvmCZxMIAOyjKT+c4L1ei/xgr1quF/FQ 9lMlwS6JGQ6kjY/C4c284ouooViEZKGtK1rULF7ukhcDMc81P1MFzS3O2AP1fcAY I9FYyYDqpECHLO653nxu2+RaFYOHDq6iP6F5LlIT8PkeSYI+QNLEJLWGfbea2jxS 9ZmQPeQYFQ37wfKJCgK4pqFb6DK4L5bXImJWASIkV0u8HfX66M8OJ8yfqxADCLIS u4FGMK1mFUvzn+1DuIerkCh72f9O/ShDYq2YBhwWJvv5eZRCnhIZLrKpRZVuX5cO Rcvp2EMNvKYDACAFdY/Kabr5a23f2x72v9uyhaT8ev5h/7xu5AOWpYiugB6D744= =ZaHi -----END PGP SIGNATURE----- --=-=-=--