emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FR new exporter] NAME and label
@ 2012-11-17 13:34 Rasmus
  2012-11-17 13:55 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus @ 2012-11-17 13:34 UTC (permalink / raw)
  To: emacs-orgmode


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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-17 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-17 13:34 [FR new exporter] NAME and label Rasmus
2012-11-17 13:55 ` Nicolas Goaziou

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