emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-latex and synctex
@ 2014-02-24 23:22 Ken Mankoff
       [not found] ` <87txbnn7yo.fsf@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Mankoff @ 2014-02-24 23:22 UTC (permalink / raw)
  To: Org-mode


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Fwd:  ox-latex and synctex
       [not found] ` <87txbnn7yo.fsf@gmail.com>
@ 2014-02-25  4:33   ` Aaron Ecay
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Ecay @ 2014-02-25  4:33 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

I meant to send this reply to the list as well:

Hi Ken,

I originally wrote the ox-synctex code.  I find that the code in your
example works for me only after re-evaluating the two functions that
ox-synctex advises (org-export-as and org-latex-compile).  This must be
some oddity of how advice interacts with org’s code (probably having
something to do with byte compilation/autoloading).  But I’ve never been
able to isolate a simple test case.

I don’t use ox-synctex on a daily basis myself: it’s too fiddly, as
you’ve seen.

--
Aaron Ecay

[-- Attachment #2: Type: text/html, Size: 759 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-25  4:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 23:22 ox-latex and synctex Ken Mankoff
     [not found] ` <87txbnn7yo.fsf@gmail.com>
2014-02-25  4:33   ` Fwd: " Aaron Ecay

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).