From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: [FR new exporter] NAME and label
Date: Sat, 17 Nov 2012 14:34:35 +0100 [thread overview]
Message-ID: <87obiw8iac.fsf@pank.eu> (raw)
Hi,
I rely on org-special-blocks.el to provide easy access to the LaTeX
proof environment and such. 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.
Also, I think it might be nicer to use \dots as oppose to \ldots, as
it is slightly more intelligent.
Thanks,
Rasmus
--
When in doubt, do it!
next reply other threads:[~2012-11-17 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 13:34 Rasmus [this message]
2012-11-17 13:55 ` [FR new exporter] NAME and label Nicolas Goaziou
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=87obiw8iac.fsf@pank.eu \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/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).