1 Jul 2012 17:39

## LaTeX-environment on region inserts new-lines

Hello.

I would like to ask if it is possible to avoid this:

1. I write

... foo
$some math$
bar ...

2. After some time I realize that I need to label previous equation hence I
delete '$' and '$', select 'some math' and do 'LaTeX-environmant' (via C-ce or
M-x LaTeX-environment) on that region.

The result is this:

... foo
$$some math\label{eq:my-label}$$

bar ...

Is it possible to avoid that two new-lines (empty lines) in equation environment
and after ? To clarify:

... foo