Math & ScienceHow to reduce the size of a matrix ?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
akshay_ka
Posts: 2
Joined: Wed Sep 02, 2020 1:01 am

How to reduce the size of a matrix ?

Post by akshay_ka »

The width of the matrix is too large to fit to the text length.
Any solution available to resize the matrix or reduce column width ??
I have used the following code and i don't want to change \[ \begin{bmatrix}.... \end{bmatrix} \].

Code: Select all

\[
$ \indices{^{i-1}_i}T $ = \begin{bmatrix}
$\cos \theta _i$ & -$\sin \theta _i$ & 0 & $a_{i-1}$ \\
$\sin \theta _i$ $\cos \alpha _{i-1}$ & $\cos \theta _i$ $\cos \alpha _{i-1}$ & -$\sin \alpha _{i-1}$ & -$d_i \sin \alpha _{i-1}$ \\
$\sin \theta _i$ $\sin \alpha _{i-1}$ & $\cos \theta _i$ $\sin \alpha _{i-1}$ & $\cos \alpha _{i-1}$ & $d_i \sin \alpha _{i-1}$ \\
0 & 0 & 0 & 1
\end{bmatrix}
\]
Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

How to reduce the size of a matrix ?

Post by Bartman »

The example is incomplete and should result in error messages due to the unnecessary flood of dollar signs.

You can reduce the font size of the matrix limited by a group and/or adjust the command \arraycolsep to lower the column spacing.
akshay_ka
Posts: 2
Joined: Wed Sep 02, 2020 1:01 am

How to reduce the size of a matrix ?

Post by akshay_ka »

Bartman wrote:The example is incomplete and should result in error messages due to the unnecessary flood of dollar signs.

You can reduce the font size of the matrix limited by a group and/or adjust the command \arraycolsep to lower the column spacing.
The code is incomplete, yes. But, there is no error in using $ signs. It is required in my case.

The code should output the matrix as you see in the image.
But, this matrix is too wide in length.
I need the matrix size to be aligned with the sentence length (see the image).

I cannot use other commands because i need to represent matrix in square brackets

Code: Select all

\begin{bmatrix}
The letter "b" is the key in {bmatrix} to get square brackets in output.

Any solution for this now ??

Thanks.
Attachments
2020-09-02_20h07_08.png
2020-09-02_20h07_08.png (12.43 KiB) Viewed 10646 times
Post Reply