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

* Re: [FR new exporter] NAME and label
  2012-11-17 13:34 [FR new exporter] NAME and label Rasmus
@ 2012-11-17 13:55 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2012-11-17 13:55 UTC (permalink / raw)
  To: Rasmus; +Cc: emacs-orgmode

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

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