From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: synctex!! ...syncorg? Date: Thu, 02 Sep 2010 16:35:37 +0200 Message-ID: <87occgz006.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=59426 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrAtB-0000IW-Ms for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 10:35:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrAt7-0004mo-T8 for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 10:35:41 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:44359) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrAt7-0004mb-Nj for emacs-orgmode@gnu.org; Thu, 02 Sep 2010 10:35:37 -0400 Received: by wyb36 with SMTP id 36so410342wyb.0 for ; Thu, 02 Sep 2010 07:35:36 -0700 (PDT) In-Reply-To: (Kevin Brubeck Unhammer's message of "Tue, 31 Aug 2010 12:10:46 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kevin Brubeck Unhammer Cc: org-mode Mailinglist Kevin Brubeck Unhammer 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