emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kevin Brubeck Unhammer <p.ixiemotion@gmail.com>
To: Bastien <bastien.guerry@wikimedia.fr>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: synctex!! ...syncorg?
Date: Thu, 2 Sep 2010 21:50:02 +0200	[thread overview]
Message-ID: <AANLkTinjDNjc53a8=CkN2f22yGkwquZRWSk-iEjoCZJr@mail.gmail.com> (raw)
In-Reply-To: <87occgz006.fsf@gnu.org>

2010/9/2 Bastien <bastien.guerry@wikimedia.fr>:
> 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.

Yeah... I guess for anything truly robust, the exported tex-file would
have to be peppered with comments (alternatively output another file
with line-number correspondences).

best regards,
Kevin

      reply	other threads:[~2010-09-02 19:50 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
2010-09-02 19:50   ` Kevin Brubeck Unhammer [this message]

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='AANLkTinjDNjc53a8=CkN2f22yGkwquZRWSk-iEjoCZJr@mail.gmail.com' \
    --to=p.ixiemotion@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --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).