Large matrices
Scott Kostyshak
skostysh at lyx.org
Tue May 26 09:53:57 UTC 2026
On Tue, May 26, 2026 at 11:42:56AM +0200, Herbert Voss via lyx-users wrote:
>
>
> 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!
I'm intrigued by your proposal. I agree code-wise it should be easy. I
just remember historical discussions where we usually decide not to
change LaTeX defaults.
Should we change the limit also in the case of enum? If I remember
correctly, there's a limit on how much nesting is allowed. And also how
many \items.
> The only problem: You have to save the current counter value to suppress
> changes
> like. 14->12
I actually don't understand this subtlety. Why do we have to save the
current counter value?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260526/ba8c711d/attachment-0001.sig>
More information about the lyx-users
mailing list