[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [text \begin{array} still causes problems]
From: |
Uwe Brauer |
Subject: |
Re: [text \begin{array} still causes problems] |
Date: |
Fri, 25 Mar 2022 14:46:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "IK" == Ikumi Keita <ikumi@ikumi.que.jp> writes:
> Hi Uwe,
>>>>>> Uwe Brauer <oub@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.
smime.p7s
Description: S/MIME cryptographic signature
[text \begin{array} still causes problems] (was: Indenting conditionals), Uwe Brauer, 2022/03/24