emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [FR new exporter] NAME and label
Date: Sat, 17 Nov 2012 14:55:08 +0100	[thread overview]
Message-ID: <87pq3cnxkz.fsf@gmail.com> (raw)
In-Reply-To: <87obiw8iac.fsf@pank.eu> (rasmus@gmx.us's message of "Sat, 17 Nov 2012 14:34:35 +0100")

Hello,

Rasmus <rasmus@gmx.us> writes:

> Hi,
>
> I rely on org-special-blocks.el to provide easy access to the LaTeX
> proof environment and such.

org-export.el supersedes org-special-blocks.el: don't use the latter.

> 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.

Indeed. That should now be the case.

> Also, I think it might be nicer to use \dots as oppose to \ldots, as
> it is slightly more intelligent.

I thought \dots was an alias for \ldots. Isn't there any drawback to
replace \ldots with \dots (i.e. when amsmath isn't used)?


Regards,

-- 
Nicolas Goaziou

      reply	other threads:[~2012-11-17 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 13:34 [FR new exporter] NAME and label Rasmus
2012-11-17 13:55 ` Nicolas Goaziou [this message]

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=87pq3cnxkz.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).