From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [babel] editing LaTeX source code blocks Date: Mon, 23 Nov 2009 11:34:35 -1000 Message-ID: <475706D8-9D64-4427-A44E-3FAA851FD22F@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1242021195==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCgYa-0002bT-4Y for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 16:34:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCgYU-0002Y1-Uc for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 16:34:47 -0500 Received: from [199.232.76.173] (port=55547 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCgYU-0002Xt-Qf for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 16:34:42 -0500 Received: from outbound-mail-311.bluehost.com ([67.222.54.4]:41433) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NCgYU-0002PW-9h for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 16:34:42 -0500 Received: from [72.253.144.27] (helo=potofo-ou.westell.com) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1NCgYO-000328-SY for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 14:34:37 -0700 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: org-mode mailing list --===============1242021195== Content-Type: multipart/alternative; boundary=Apple-Mail-21--615482351 --Apple-Mail-21--615482351 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, It is very convenient in org-babel to open a new buffer on a source code block with C-c ' and edit in that buffer using the appropriate Emacs major/minor modes. Currently, the LaTeX source code buffer doesn't have access to labels defined in other source code blocks. Outside of org-babel, when editing multi-file documents, reftex (or auctex, I'm not sure which) scans all the files referenced in the master file for labels and makes these available when adding a cross reference. It would be nice if C-c ' on a LaTeX source code block did something similar, perhaps by finding LaTeX source code blocks with a :tangle header argument and evaluating the noweb references to find label definitions. If it is the case that the Org-mode file contains more than one LaTeX source code block with a :tangle header argument, then perhaps the user could be given a choice of which one to search for label definitions. There are easy workarounds for this, so it isn't a big deal. It would be deluxe to leverage the full power of reftex while editing org-babel LaTeX source code blocks, though. All the best, Tom Thomas S. Dye, Ph.D. T. S. Dye & Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.com --Apple-Mail-21--615482351 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

It is very convenient in org-babel to open a new = buffer on a source code block with C-c ' and edit in that buffer using = the appropriate Emacs major/minor = modes.

Currently, the LaTeX source code buffer = doesn't have access to labels defined in other source code blocks. =  Outside of org-babel, when editing multi-file documents, reftex = (or auctex, I'm not sure which) scans all the files referenced in the = master file for labels and makes these available when adding a cross = reference.

It would be nice if C-c ' on a LaTeX = source code block did something similar, perhaps by finding LaTeX source = code blocks with a :tangle header argument and evaluating the noweb = references to find label definitions.

If it is = the case that the Org-mode file contains more than one LaTeX source code = block with a :tangle header argument, then perhaps the user could be = given a choice of which one to search for label = definitions.

There are easy workarounds for = this, so it isn't a big deal.  It would be deluxe to leverage the = full power of reftex while editing org-babel LaTeX source code blocks, = though.

All the = best,
Tom

Thomas S. Dye, Ph.D.

T. S. Dye & Colleagues, = Archaeologists, Inc.

Phone: (808) 529-0866 Fax: (808) 529-0884

=

= --Apple-Mail-21--615482351-- --===============1242021195== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1242021195==--