I am new to TeX, and I love it, but one thing drives me crazy. For a lot of courses, I need to add state row vectors that are bigger than 6 columns. However every time I try to add a row vector using the \bmatrix object the last columns get put on the next line. Is there a way to prohibit this behaviour maybe by setting the equation for vertical overflow margins or do you have any tips on how to best input such a large column state matrix?



 x0 = 
    x_{1} & y_1 & phi_1 & x_2 & y_2 & phi_2 & \dot{x_1} & \dot{y_1} & \dot{phi_1} & \dot{x_2} & \dot{y_2} & \dot{phi_2}


enter image description here

Expected behaviour:

I wanted one big column array which does not overflow until the side margins are reached.

Used packages:

\documentclass[a4paper, 11pt]{article}

marked as duplicate by egreg equations May 31 '18 at 15:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Hi, welcome. Please don't use screenshots for code. Are those made with a standard bmatrix? You should get an error then, as by default matrix and the like has a max of ten columns, see tex.stackexchange.com/questions/95162/… – Torbjørn T. May 31 '18 at 14:40
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – dexteritas May 31 '18 at 15:15
  • Thanks a lot for your comments @TorbjørnT. I uploaded the formatting and keep it in mind for the next time. The link you send is exactly the one I was looking for. I'm ashamed that I couldn't find it myself. Thanks a lot! – arcety May 31 '18 at 15:26
  • 1
    @dexteritas Thanks a lot for the welcome message and the source to the working example I will keep it in mind next time! – arcety May 31 '18 at 15:32