emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Reverse lookup from pdf to org?


From: Brett Viren
Subject: Re: [O] Reverse lookup from pdf to org?
Date: Tue, 25 Mar 2014 16:29:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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:

  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?

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.

Chance of success: 10%

-Brett.

Attachment: pgpIvehkdFVpy.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]