emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Rasmus <rasmus.pank@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Questions on LaTeX Exporter
Date: Mon, 07 Mar 2011 09:25:39 +0000	[thread overview]
Message-ID: <87d3m3i8oc.fsf@ucl.ac.uk> (raw)
In-Reply-To: <4D738A76.9000002@gmail.com> (Rasmus's message of "Sun, 06 Mar 2011 14:21:58 +0100")

Rasmus <rasmus.pank@gmail.com> 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)

  parent reply	other threads:[~2011-03-07 10:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 20:50 Questions on LaTeX Exporter Rasmus
2011-03-05 23:25 ` Thomas S. Dye
2011-03-06 13:21   ` Rasmus
2011-03-06 22:39     ` Thomas S. Dye
2011-03-07  9:46       ` Lawrence Mitchell
2011-03-07 11:11         ` Rasmus Pank Roulund
2011-03-07 11:50           ` Eric S Fraga
2011-03-07 12:10             ` Rasmus Pank Roulund
2011-03-07 12:30               ` suvayu ali
2011-03-07 12:49                 ` Rasmus Pank Roulund
2011-03-07 13:01                   ` Suvayu Ali
2011-03-07 16:30         ` Thomas S. Dye
2011-03-07  9:25     ` Eric S Fraga [this message]
2011-03-07 14:00 ` Lawrence Mitchell
2011-03-07 16:18   ` Thomas S. Dye

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3m3i8oc.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus.pank@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).