From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: reference #+label: in export to both LaTeX and HTML Date: Sat, 23 Nov 2013 13:12:55 -0700 Message-ID: <87mwkuev20.fsf@gmail.com> References: <87r4a6evaz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkJaf-0008OX-IB for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 15:14:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkJaZ-0004WQ-7Z for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 15:14:05 -0500 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:48058) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkJaZ-0004WA-0G for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 15:13:59 -0500 Received: by mail-pd0-f176.google.com with SMTP id w10so2964020pde.7 for ; Sat, 23 Nov 2013 12:13:58 -0800 (PST) Received: from bagel (c-174-56-50-60.hsd1.nm.comcast.net. [174.56.50.60]) by mx.google.com with ESMTPSA id hi5sm62038656pbb.43.2013.11.23.12.13.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Nov 2013 12:13:57 -0800 (PST) In-Reply-To: <87r4a6evaz.fsf@gmail.com> (Eric Schulte's message of "Sat, 23 Nov 2013 13:07:32 -0700") 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: Org Mode Mailing List Eric Schulte writes: > Hi, > > How would I reference a label in export to HTML? For example. > > #+label: mutation-ops > [[file:mut-ops.svg]] > > In LaTeX export I could use \ref{mutation-ops} which would be passed > directly through to LaTeX, however this syntax is not understood by the > HTML backend. > > Is there a general Org-mode construct for referencing labels? > > Thanks, Sorry, I should have spent another 5 minutes searching for the answer before posting. For the above example using [[mutation-ops]] gives the desired result. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D