## LaTeX forum ⇒ Math & Science ⇒ too 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

hi all,

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

\begin{equation*}J =\begin{bmatrix}\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]\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}} \\\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\\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]\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]\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]\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}} \\\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\\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]\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}}\end{bmatrix}\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 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 \documentclass[a4paper]{article} \usepackage{amsmath}\usepackage[showframe]{geometry} \begin{document} \[J =\left[\begin{array}{c*{10}{@{\,}c}}\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]\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}} \\\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\\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]\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]\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]\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}} \\\vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots \\\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]\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}}\end{array}\right]$ \end{document}

vmz
Posts: 2
Joined: Wed Dec 08, 2010 9:46 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
No problem, happy to help.

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

### Who is online

Users browsing this forum: No registered users and 5 guests