
我有一個以下等式
我需要將其向左移動一點,因為它太靠近右側,並且在列印時可能會被夾住。
這些方程式正在使用$$ R=... $$
語法。我怎麼才能把它移到左邊?
編輯
更改為\[ ... \]
語法後:
\begin{description}
\item[Model matrix] \hfill \\
...
\begin{itemize}
\item Rotation matrix - used to rotate vertex (vertices) by a specifed angle $\alpha$ around specified axis, where each from 3 axes has its own rotation matrix
\[
R_x = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\alpha) & -\sin(\alpha) & 0 \\ 0 & \sin(\alpha) & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\newline
R_y = \begin{bmatrix} \cos(\alpha) & 0 & \sin(\alpha) & 0 \\ 0 & 1 & 0 & 0 \\ -\sin(\alpha) & 0 & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\newline
R_z = \begin{bmatrix} \cos(\alpha) & -\sin(\alpha) & 0 & 0 \\ \sin(\alpha) & \cos(\alpha) & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}
\]
\end{itemize}
答案1
透過插入相當於以下內容的負空格來調整清單的累積縮排\@totalleftmargin
:
\documentclass{article}
\usepackage[margin=1in,showframe]{geometry}% Just for this example
\usepackage{amsmath}
\begin{document}
\begin{description}
\item[Model matrix] \hfill \\
\ldots
\begin{itemize}
\item Rotation matrix - used to rotate vertex (vertices) by a specifed angle $\alpha$ around specified axis, where each from 3 axes has its own rotation matrix
\[
\makeatletter
\hspace*{-\@totalleftmargin}
\makeatother
R_x = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\alpha) & -\sin(\alpha) & 0 \\ 0 & \sin(\alpha) & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\quad
R_y = \begin{bmatrix} \cos(\alpha) & 0 & \sin(\alpha) & 0 \\ 0 & 1 & 0 & 0 \\ -\sin(\alpha) & 0 & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\quad
R_z = \begin{bmatrix} \cos(\alpha) & -\sin(\alpha) & 0 & 0 \\ \sin(\alpha) & \cos(\alpha) & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}
\]
\end{itemize}
\end{description}
\[
R_x = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & \cos(\alpha) & -\sin(\alpha) & 0 \\ 0 & \sin(\alpha) & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\quad
R_y = \begin{bmatrix} \cos(\alpha) & 0 & \sin(\alpha) & 0 \\ 0 & 1 & 0 & 0 \\ -\sin(\alpha) & 0 & \cos(\alpha) & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix},
\quad
R_z = \begin{bmatrix} \cos(\alpha) & -\sin(\alpha) & 0 & 0 \\ \sin(\alpha) & \cos(\alpha) & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{bmatrix}
\]
\end{document}
或者,根據需要將方程式左移或多或少。例如,-\leftmargin
僅刪除最深的壓痕。