From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [FR new exporter] NAME and label Date: Sat, 17 Nov 2012 14:34:35 +0100 Message-ID: <87obiw8iac.fsf@pank.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZiXp-0006r6-2u for emacs-orgmode@gnu.org; Sat, 17 Nov 2012 08:34:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZiXm-0001EO-0p for emacs-orgmode@gnu.org; Sat, 17 Nov 2012 08:34:49 -0500 Received: from plane.gmane.org ([80.91.229.3]:40148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZiXl-0001DK-Pq for emacs-orgmode@gnu.org; Sat, 17 Nov 2012 08:34:45 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TZiXt-0004s1-Qz for emacs-orgmode@gnu.org; Sat, 17 Nov 2012 14:34:53 +0100 Received: from 192.167.90.138 ([192.167.90.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2012 14:34:53 +0100 Received: from rasmus by 192.167.90.138 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Nov 2012 14:34:53 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I rely on org-special-blocks.el to provide easy access to the LaTeX proof environment and such. Up till now I have been placing LaTeX labels in them manually, but I would like to #+NAME them. Here's an example #+begin_src org * section two #+NAME:p1 #+BEGIN_PROPOSITION 1+1=2 #+END_PROPOSITION By [[p1]] ... #+end_src This results in #+begin_src latex \section{section two} \label{sec-1} \label{p1} \begin{proposition} 1+1=2 \end{proposition} By \ref{p1} \ldots{} #+end_src Basically, I would like to have the label inside the proposition. Also, I think it might be nicer to use \dots as oppose to \ldots, as it is slightly more intelligent. Thanks, Rasmus -- When in doubt, do it!