Am 26.05.26 um 11:30 schrieb Scott Kostyshak via lyx-users:
On Tue, May 26, 2026 at 09:32:32AM +0100, Steve Hnizdur via lyx-users wrote:

for some historical reason the number of columns is limited to 10!
Write into the preamble

\setcounter{MaxMatrixCols}{11}

Herbert
Thanks - I had hoped that later versions of lyx might have done this
insertion automatically. It does other such automatic preamble additions.
Good point. I think in LyX there is an idea that we don't want to change
LaTeX defaults. LyX makes automatic preamble additions for
*dependencies* (like loading a required package), but I'm not sure we
change many defaults like this limit of columns. Do we?

However, I do think it would be nice to do something for situations like
this. What an ugly error that LaTeX gives in this example.

My personal opinion (and I would be surprised if all other LyX
developers agreed with me) is that if we aren't going to change the
default limit, at least we can give a user friendly message of "You
might get a LaTeX error... add this code to the preamble").

Insie LyX it should be easy to count the colums if you insert the matrix from the menu and not with ERT. If the number is > 10 then change the above counter! The only problem: You have to save the current counter value to suppress changes
like. 14->12

Herbert



Scott


--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to