[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] LaTeX-environment on region inserts new-lines

From: Adam
Subject: [AUCTeX] LaTeX-environment on region inserts new-lines
Date: Sun, 1 Jul 2012 15:39:15 +0000 (UTC)
User-agent: Loom/3.14 (


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 
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 
and after \end{equation}? To clarify:

    ... foo
    some math\label{eq:my-label}
--> This empty line gives error. <--
--> This empty line brakes paragraph. <--
    bar ...

Of course I can delete them manually but I would be grateful if AUCTeX can do 
this automatically. I can also use equation* instead of \[ and \] but I like \

Best regards

reply via email to

[Prev in Thread] Current Thread [Next in Thread]