How do I display an array of a certain width(say eighteen 1's) in one line?

Here are two arrays of numbers:

#let a = (40,50,55,64,75,88,99,69,72,79,80,86,95)
#a
#let b = (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
#b

Both can be dispayed in one line as expected, and the end of the array is still far from the right margin.
However, if you add one more dot/digit/number:

#let a1 = (40,50,55,64,75,88,99,69,72,79,80,86,95.)
#let a2 = (40,50,55,64,75,88,99,69,72,79,80,86,951)
#let b1 = (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.)
#let b2 = (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)

the array will be displayed vertically, one number for each line.
It seems that there’s a strict width limit for an array. I know I can display a long array in math mode and in some cases this feature makes reading easier. Just want to know if I can adjust the limit because it can be useful.

Your examples output the raw array type directly. You wouldn’t use this output for a final document directly, but rather during the documents/templates development for debugging.
To display an array in a final document, I would do something like this.

#let a = (40,50,55,64,75,88,99,69,72,79,80,86,95,66)
(#a.map(str).join(", "))

image

But to answer the question, there is no option to adjust the limit for the build in representation.

2 Likes

Thank you so much! Looks like I’ve jumped some important parts in the tutorial :melting_face: