I'm trying to list examples of weak compositions of 4, and my code looks like the following:
Weak compositions of $4$ into three parts are: \[(4,0,0), (0,4,0),(0,0,4),(3,1,0),(3,0,1),(0,1,3)\linebreak(0,3,1),(1,0,3),(1,3,0),(2,2,0),(2,0,2),(0,2,2),\linebreak(2,1,1),(1,2,1),(1,1,2)\]
However, the line break is not working and the list is overflowing from the page. Is there any fix/convention when this happens?