Re: Large matrices
Scott Kostyshak via lyx-users <[email protected]> Tue, 26 May 2026 11:53:57 +0200
| Newsgroups | gmane.editors.lyx.general |
|---|---|
| Message-ID | <ahVtM_z6F1GU9Sxp@jimmy> |
--===============1007488323630771178==
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="bf6kbqqecfphnysb"
Content-Disposition: inline
--bf6kbqqecfphnysb
Content-Type: text/plain; protected-headers=v1; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: Large matrices
MIME-Version: 1.0
On Tue, May 26, 2026 at 11:42:56AM +0200, Herbert Voss via lyx-users wrote:
>=20
>=20
> 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 w=
rote:
> >=20
> > > > for some historical reason the number of columns is limited to 10!
> > > > Write into the preamble
> > > >=20
> > > > \setcounter{MaxMatrixCols}{11}
> > > >=20
> > > > Herbert
> > > Thanks - I had hoped that later versions of lyx might have done this
> > > insertion automatically. It does other such automatic preamble additi=
ons.
> > 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?
> >=20
> > 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.
> >=20
> > 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").
>=20
> 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
--bf6kbqqecfphnysb
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEMfkICpsJzYuNuGlOA4ZnarZHC+sFAmoVbbQACgkQA4ZnarZH
C+vwpQf9F7VCmlHx8ezFrCGlNAZ/VX+h3xDbwoYMR5DpFBCOY8g87/AlbSw9eZ+O
s7KU14K1J2/HTrkiWooJ1uJkB2JYxJiwEUWsP9RadtFf3gMhKmkaGd+RVRImIwJY
hkB13quIKpILO52tnc1K+xhus2MRRq0Yh6sU81oKNN/2wd54AUB/KHFALf2qFOiz
e7JfP+2VaZzoggHGuvNa98HIVCq35ZZEyA+y1KKNj1tJ4p0bsxtMDjZ+zGR9fVhG
mr4boI6H57yaopO1cgW6ZkZwXkgk/5BfHUU3ef8ap9FmBwBbD7xlFADUJAESbikA
0n+efCij3pAnx988zRNNeruCa/iHDw==
=Djjn
-----END PGP SIGNATURE-----
--bf6kbqqecfphnysb--
--===============1007488323630771178==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
--===============1007488323630771178==--