[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Reverse lookup from pdf to org?
From: |
Rainer M Krug |
Subject: |
Re: [O] Reverse lookup from pdf to org? |
Date: |
Thu, 27 Mar 2014 10:12:20 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
Brett Viren <address@hidden> writes:
> Nick Dokos <address@hidden> 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=42
>
> 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.
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
pgp4wkl45DaJW.pgp
Description: PGP signature