emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: Kevin Brubeck Unhammer <p.ixiemotion@gmail.com>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: synctex!! ...syncorg?
Date: Thu, 02 Sep 2010 16:35:37 +0200	[thread overview]
Message-ID: <87occgz006.fsf@gnu.org> (raw)
In-Reply-To: <AANLkTimWBPWELT=jPowNqRyMyH_Y-_YehqhdEoiMRKX4@mail.gmail.com> (Kevin Brubeck Unhammer's message of "Tue, 31 Aug 2010 12:10:46 +0200")

Kevin Brubeck Unhammer <p.ixiemotion@gmail.com> writes:

> But now the obvious question is: does there exist a "syncorg" to
> transport me back into the org-mode file to the point that corresponds
> to that place in the tex-file? I assume it should be possible since
> org-mode outputs these \label{sec-3.3} things...

Very dumb and stupid proof-of-nothing:

(defun bzg/search-point-in-latex-source ()
  "Switch to an Org's sister LaTeX file and find text at point."
  (interactive)
  (let ((txt (buffer-substring 
	      (point) (save-excursion (forward-word 3) (point))))
	(lfn (concat (file-name-sans-extension (buffer-file-name)) ".tex")))
    (find-file-other-window lfn)
    (goto-char (point-min))
    (search-forward txt)))

But using isearch might be fast enough, isn't it?

After all, it's just text.  

-- 
 Bastien

  parent reply	other threads:[~2010-09-02 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 10:10 synctex!! ...syncorg? Kevin Brubeck Unhammer
2010-08-31 10:18 ` Rainer M Krug
2010-08-31 14:30   ` Kevin Brubeck Unhammer
2010-09-02 14:35 ` Bastien [this message]
2010-09-02 19:50   ` Kevin Brubeck Unhammer

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=87occgz006.fsf@gnu.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=p.ixiemotion@gmail.com \
    /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).