emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Questions on LaTeX Exporter


From: Eric S Fraga
Subject: Re: [O] Questions on LaTeX Exporter
Date: Mon, 07 Mar 2011 09:25:39 +0000
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

Rasmus <address@hidden> 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]