emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: ox-latex and synctex
Date: Mon, 24 Feb 2014 18:22:47 -0500 (EST)	[thread overview]
Message-ID: <alpine.OSX.2.00.1402241807230.95179@tbetbambyn> (raw)


I'm writing about a recent thread combining syntex with ox-latex. 
Four posts on this are here: 
https://lists.gnu.org/archive/html/emacs-orgmode/2013-10/msg00905.html 
including an ox-synctex.el that implements PDF -> Org syncing.

I have bi-directional synctex working with LaTeX source, and would 
like to get one direction PDF -> Org Source links working with Org 
mode if possible as the above claims. Right now if I click on the 
PDF the LaTeX exported version opens to the correct line, not the 
Org source.

I'm using the latest version of Org (from ELPA, OS X) and I'm 
wondering if anyone else has this setup working?

I'm using this test code:

#+BEGIN_SRC emacs-lisp
(load "~/.emacs.d/ox-synctex.el")
(setq org-latex-pdf-process
       '("pdflatex -synctex=1 -interaction nonstopmode -output-directory %o %f"))
(ox-synctex-activate)
(org-latex-export-to-pdf)
#+END_SRC

And after exporting my *Messages* buffer contains:

ox-synctex: patching org-export-as return
ox-synctex: active during latex compile
ox-synctex: no concordance, not patching.
ox-synctex: done, hoorah!

However, when I look at the synctex.gz and compare it with that same 
file produced from compiling the LaTeX source directly in emacs the 
two are identical, which is why my pdf viewer/synctex is sending me 
to the .tex exported file and not the original .org source file.

   -k.

             reply	other threads:[~2014-02-24 23:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-24 23:22 Ken Mankoff [this message]
     [not found] ` <87txbnn7yo.fsf@gmail.com>
2014-02-25  4:33   ` Fwd: ox-latex and synctex Aaron Ecay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.00.1402241807230.95179@tbetbambyn \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).