如何忽略左边距并将居中的数学等式移动到左边?

如何忽略左边距并将居中的数学等式移动到左边?

我有以下等式在此处输入图片描述

我需要将它稍微向左移动,因为它太靠近右侧,在打印时可能会被夹住。

这些方程式使用$$ 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只需删除最深的缩进即可。

相关内容