LaTeX forum ⇒ Math & Sciencetoo much wide bmatrix

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
vmz
Posts: 2
Joined: Wed Dec 08, 2010 9:46 pm

too much wide bmatrix

Postby vmz » Wed Dec 08, 2010 10:56 pm

hi all,

i'd like to typeset following (jacobian) matrix.

  1. \begin{equation*}
  2. J =
  3. \begin{bmatrix}
  4. \dfrac{\partial \Delta a_{1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{1}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{n-1}} \\[3.0ex]
  5. \dfrac{\partial \Delta b_{1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{1}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{n-1}} \\
  6. \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
  7. \dfrac{\partial \Delta a_{m}}{\partial c_{1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{m}}{\partial c_{m}} & \dfrac{\partial \Delta a_{m}}{\partial d_{m}} & \dfrac{\partial \Delta a_{m}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{m}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{n-1}} \\[3.0ex]
  8. \dfrac{\partial \Delta b_{m}}{\partial c_{1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{m}}{\partial c_{m}} & \dfrac{\partial \Delta b_{m}}{\partial d_{m}} & \dfrac{\partial \Delta b_{m}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{m}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{n-1}} \\[3.0ex]
  9. \dfrac{\partial \Delta a_{m+1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{m+1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{m+1}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{m+1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{n-1}} \\[3.0ex]
  10. \dfrac{\partial \Delta b_{m+1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{m+1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{m+1}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{m+1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{n-1}} \\
  11. \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
  12. \dfrac{\partial \Delta a_{n-1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{n-1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{n-1}} & \ldots & \dfrac{\partial \Delta a_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{n-1}} \\[3.0ex]
  13. \dfrac{\partial \Delta b_{n-1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{n-1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{n-1}} & \ldots & \dfrac{\partial \Delta b_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{n-1}}
  14. \end{bmatrix}
  15. \end{equation*}


unfortunatelly it is wider than a page. the spaces between columns are (seems to me to be) really huge. i guess with propriate settings the matrix would fit into page.

so is there any way in bmatrix enviroment to reduce horizontal spaces between colums? or would you suggest any other approach to make the matrix fit into page.

thank you very much
vita mach-zizka
Last edited by vmz on Thu Dec 09, 2010 7:25 pm, edited 1 time in total.

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Postby php1ic » Thu Dec 09, 2010 2:24 pm

Not sure how to do it with a bmatrix, but if you use an array surrounded by square brackets then you can specify the column separation
  1. \documentclass[a4paper]{article}
  2.  
  3. \usepackage{amsmath}
  4. \usepackage[showframe]{geometry}
  5.  
  6. \begin{document}
  7.  
  8. \[
  9. J =
  10. \left[
  11. \begin{array}{c*{10}{@{\,}c}}
  12. \dfrac{\partial \Delta a_{1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{1}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{1}}{\partial d_{n-1}} \\[3.0ex]
  13. \dfrac{\partial \Delta b_{1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{1}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{1}}{\partial d_{n-1}} \\
  14. \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
  15. \dfrac{\partial \Delta a_{m}}{\partial c_{1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{m}}{\partial c_{m}} & \dfrac{\partial \Delta a_{m}}{\partial d_{m}} & \dfrac{\partial \Delta a_{m}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{m}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{m}}{\partial d_{n-1}} \\[3.0ex]
  16. \dfrac{\partial \Delta b_{m}}{\partial c_{1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{m}}{\partial c_{m}} & \dfrac{\partial \Delta b_{m}}{\partial d_{m}} & \dfrac{\partial \Delta b_{m}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{m}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{m}}{\partial d_{n-1}} \\[3.0ex]
  17. \dfrac{\partial \Delta a_{m+1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{m+1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{m+1}}{\partial c_{m+1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta a_{m+1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{m+1}}{\partial d_{n-1}} \\[3.0ex]
  18. \dfrac{\partial \Delta b_{m+1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{m+1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{m+1}}{\partial c_{m+1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{m+1}} & \ldots & \dfrac{\partial \Delta b_{m+1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{m+1}}{\partial d_{n-1}} \\
  19. \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\
  20. \dfrac{\partial \Delta a_{n-1}}{\partial c_{1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta a_{n-1}}{\partial c_{m}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{m}} & \dfrac{\partial \Delta a_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{n-1}} & \ldots & \dfrac{\partial \Delta a_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta a_{n-1}}{\partial d_{n-1}} \\[3.0ex]
  21. \dfrac{\partial \Delta b_{n-1}}{\partial c_{1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{1}} & \ldots & \dfrac{\partial \Delta b_{n-1}}{\partial c_{m}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{m}} & \dfrac{\partial \Delta b_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{n-1}} & \ldots & \dfrac{\partial \Delta b_{n-1}}{\partial c_{n-1}} & \dfrac{\partial \Delta b_{n-1}}{\partial d_{n-1}}
  22. \end{array}
  23. \right]
  24. \]
  25.  
  26. \end{document}

vmz
Posts: 2
Joined: Wed Dec 08, 2010 9:46 pm

Postby vmz » Thu Dec 09, 2010 4:50 pm

thank you very much. thats exactly what i've been looking for. vmz

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Postby php1ic » Thu Dec 09, 2010 5:37 pm

No problem, happy to help.

Can you now edit the initial post title as solved (use the green tick/check icon)


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests