From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Questions on LaTeX Exporter Date: Mon, 07 Mar 2011 09:25:39 +0000 Message-ID: <87d3m3i8oc.fsf@ucl.ac.uk> References: <87ei6lpa06.fsf@gmail.com> <80B13489-D629-4DE3-A344-6A74EE38D804@tsdye.com> <4D738A76.9000002@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=41625 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwXPU-0000cM-5Y for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 05:11:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwXP3-0001aQ-Nj for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 05:11:04 -0500 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:54458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwXP3-0001Zv-CW for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 05:11:01 -0500 In-Reply-To: <4D738A76.9000002@gmail.com> (Rasmus's message of "Sun, 06 Mar 2011 14:21:58 +0100") 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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: [...] > Org populates every section with a label. I would > like to \ref or \vref these. I could predict \label's, but this a rather > fragile solution. When I use "Org-links" I get a text link suitable > for e.g. html. I want to use \ref to get a number. One solution is > > ,---- > | * section > | #+latex: \label{sec:sec} > `---- > > But there /must/ be a better way to this, eh? Slightly simpler: you can simply use \label{} and \ref{} directly in org text: --8<---------------cut here---------------start------------->8--- * Introduction \label{sec:intro} In section \ref{sec:intro}, we see that... --8<---------------cut here---------------end--------------->8--- Much cleaner than having to put in latex directives to org. Obviously, the label need not be on the headline; it could just as well be on the next line. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.646.g57806)