Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SyncTeX with Org-mode?

Background

With SyncTeX you can get forward and backward search between a source document and the typeset material. More specifically:

  • Forward search is to jump from a particular place in the source document, e.g. a LaTeX file, to the corresponding place in the typeset material, e.g. a PDF file.
  • Backward search is to jump from a particular place in the typeset material, e.g. a PDF file, to the corresponding place in the source document, e.g. a LaTeX file.

With Org-mode you can export as LaTeX and process it to PDF.

Question

It would be useful to be able to do forward and backward search between an Org-mode file and the PDF it produces on LaTeX export. Is this possible?

As mentioned, SyncTeX already implements forward and backward search between a LaTeX file and its resulting file. So the missing link seems to be the jump between the Org-mode file and the LaTeX file it is exported as.

I found a similar question on the mailing list: [Orgmode] synctex!! ...syncorg? It got no answer involving a solution.

like image 289
N.N. Avatar asked Apr 01 '12 14:04

N.N.


2 Answers

There is a recent (April 2013) thread on the org-mode mailing list which has some preliminary patches. However, reading the emails, it seems like it's a tricky problem.

like image 67
Ivan Andrus Avatar answered Nov 10 '22 09:11

Ivan Andrus


There is a more recent (depending on your frame of reference) post from October 2013 which has a solution. However, I have not been successful with that code, and re-raised the issue in this thread.

like image 41
mankoff Avatar answered Nov 10 '22 09:11

mankoff