Re: indentation problem II

2022-04-22 Thread Ikumi Keita
> Arash Esbati writes: >>> +(defun LaTeX-item-equation-matrix () >> >> Maybe the function name should be reconsidered since it has little >> to do with equation. > I admit that amsmath.el is not really consistent about name-space. > Other functions in that style also go with '-equation-'.

Re: indentation problem II

2022-04-22 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >> Arash Esbati writes: >> diff --git a/style/amsmath.el b/style/amsmath.el >> index 5e7812e7..f72f8be8 100644 >> --- a/style/amsmath.el >> +++ b/style/amsmath.el >> @@ -57,7 +57,8 @@ >> "align*" "gather*" "flalign*" "multline*" "equation*" >>

Re: indentation problem II

2022-04-22 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > Thanks for your responses. Indeed, there is a big chance that inserting > a single & doesn't match the user expectation. This makes the change > even smaller: > diff --git a/style/amsmath.el b/style/amsmath.el > index 5e7812e7..f72f8be8 100644 > ---

Re: indentation problem II

2022-04-22 Thread Arash Esbati
Uwe Brauer writes: > I tested your code, nice, some observations Thanks for testing. > Gives this > \begin{equation} > \label{eq:testams:1} > \begin{pmatrix} > 1 & 8 \\ > & > \end{pmatrix} > \end{equation} > > Could the & be aligned? I'm not sure it makes sense to align those &

Re: indentation problem II

2022-04-21 Thread Uwe Brauer
Hi I tested your code, nice, some observations \documentclass[12pt]{article} \usepackage{amssymb,amsfonts,amsmath,amsthm} \begin{document} Test starting equation \begin{equation} \label{eq:testams:1} \begin{pmatrix} 1 & 8 ^cursor is there M-RET \end{pmatrix}

Re: indentation problem II

2022-04-21 Thread Uwe Brauer
> Uwe Brauer writes: > Thanks for your responses. Indeed, there is a big chance that inserting > a single & doesn't match the user expectation. This makes the change > even smaller: > diff --git a/style/amsmath.el b/style/amsmath.el > index 5e7812e7..f72f8be8 100644 > --- a/style/amsmath.el

Re: indentation problem II

2022-04-21 Thread Arash Esbati
Uwe Brauer writes: "IK" == Ikumi Keita writes: > >> Hmm, it would basically be useful, but I think automatic insertion of >> ampersands at the first line should be suppressed because matrix-like >> environments are used when writing column-vector like >> \begin{pmatrix} >> 1 \\ >> 2 \\

Re: indentation problem II

2022-04-21 Thread Uwe Brauer
>>> "IK" == Ikumi Keita writes: > Hi Arash, >> Arash Esbati writes: >> Hitting 'M-RET' in a pmatrix inserts only the line break \\ and not any >> ampersands. I don't use these environments so I have no experience >> about what is convenient, but what do think about this change? Is it an

Re: [Culprit found prettify-symbols-mode] (was: indentation problem II)

2022-04-21 Thread Ikumi Keita
> Uwe Brauer writes: >> It seems to me an ordinary result in array environment, "&" signs are >> vertically aligned. What other result do you expect? > Sorry, I just realized that I was fouled by the use of > prettify-symbols-mode. > Sorry for the noise I see, don't mind. Bye, Ikumi

Re: indentation problem II

2022-04-21 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > Hitting 'M-RET' in a pmatrix inserts only the line break \\ and not any > ampersands. I don't use these environments so I have no experience > about what is convenient, but what do think about this change? Is it an > improvement? Hmm, it would basically

Re: indentation problem II

2022-04-21 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >> Uwe Brauer writes: >> That seems to me also a strange result. > > It seems to me an ordinary result in array environment, "&" signs are > vertically aligned. What other result do you expect? > >> \begin{equation}\label{Mn} >> \begin{array}{rcl} >>

[Culprit found prettify-symbols-mode] (was: indentation problem II)

2022-04-21 Thread Uwe Brauer
Hi Uwe, > Uwe Brauer writes: > That seems to me also a strange result. It seems to me an ordinary result in array environment, "&" signs are vertically aligned. What other result do you expect? Sorry, I just realized that I was fouled by the use of prettify-symbols-mode. Sorry for the

Re: indentation problem II

2022-04-21 Thread Uwe Brauer
>>> "IK" == Ikumi Keita writes: Hi Keita, > Hi Uwe, >> Uwe Brauer writes: >> That seems to me also a strange result. > It seems to me an ordinary result in array environment, "&" signs are > vertically aligned. What other result do you expect? I expect this #+begin_src

Re: indentation problem II

2022-04-19 Thread Ikumi Keita
Hi Uwe, > Uwe Brauer writes: > That seems to me also a strange result. It seems to me an ordinary result in array environment, "&" signs are vertically aligned. What other result do you expect? > \begin{equation}\label{Mn} > \begin{array}{rcl} > \lim_{n\rightarrow\infty} M^n &=&

indentation problem II

2022-04-15 Thread Uwe Brauer
Hi Please consider In which I run LaTeX-fill-environment That seems to me also a strange result. Using an array and a pmatrix is odd I confess, but I received this file in that form. Any ideas what to do? Uwe Brauer \documentclass[12pt]{article} \usepackage{a4wide}