>>> "IK" == Ikumi Keita <ik...@ikumi.que.jp> writes:

> Hi Uwe,
>>>>>> Uwe Brauer <o...@mat.ucm.es> writes:
>> The source of the problem is that the \begin{array} should be at the
>> beginning of the line, or at least not having «text» before it (not
>> sure about the \end{array}.

> [...]

>> In any case would someone like to implement this better and even more
>> general that is all \begin{something} should start at with a newline?

> How about this?

> (defun foo ()
>   (interactive)
>   (while (re-search-forward ".\\\\begin" nil t)
>     (save-excursion
>       (goto-char (1+ (match-beginning 0)))
>       (if (y-or-n-p "Break line here? ")
>         (newline-and-indent)))))

Thanks. Maybe this is a bit too much (\begin{equation} will also be check
which usually is ok, but I will play around with it a bit and report back.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to