希望你一切顺利。现在,直奔主题:我在对齐环境中有一个多行方程。我一直在尝试,但没有成功,将每条线都容纳在方程中,以便最终产品可以是一个显示轻微倾斜的方程...
以下是最小工作示例:
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{booktabs}
\usepackage{array}
\usepackage{fullpage}
\usepackage{graphicx}
\usepackage{fancyhdr}
\begin{document}
\begin{align}
\begin{aligned}
\gamma_i\,\gamma_j\,\gamma_k\ \tilde{M}_{jk} &= const_{\alpha}\,{\Big[}\gamma_1\gamma_1\gamma_1\,m_{11} \,+\\
& + \gamma_1\gamma_1\gamma_2\,m_{12} \\
& + \gamma_1\gamma_1\gamma_3\,m_{13} \\
& + \gamma_1\gamma_2\gamma_1\,m_{21} \\
& + \gamma_1\gamma_2\gamma_2\,m_{22} \label{someequation}\\
& + \gamma_1\gamma_2\gamma_3\,m_{23} \\
& + \gamma_1\gamma_3\gamma_1\,m_{31} \\
& + \gamma_1\gamma_3\gamma_2\,m_{32} \\
& + \gamma_1\gamma_3\gamma_3\,m_{33}{\Big]}.
\end{aligned}
\end{align}
\end{document}
我尝试过\qquad
,移动&
,删除,,\hspace
以及{}
许多其他选项,但都没有成功。 有没有可能以优雅的方式(或不优雅的方式)做到这一点?
提前致谢!干杯!
答案1
也许像这样
\documentclass[a4paper,12pt]{article}
% only in old latex \usepackage[utf8]{inputenc}
\usepackage{amsmath}
\newcommand\z[1]{\hspace{#1em}}
\begin{document}
\begin{equation}\label{someequation}
\gamma_i\,\gamma_j\,\gamma_k\ \tilde{M}_{jk} = \operatorname{const}_{\alpha}\Bigl[
\begin{aligned}[t]
& \gamma_1\gamma_1\gamma_1\,m_{11} \\
&\z1 + \gamma_1\gamma_1\gamma_2\,m_{12} \\
&\z2 + \gamma_1\gamma_1\gamma_3\,m_{13} \\
&\z3 + \gamma_1\gamma_2\gamma_1\,m_{21} \\
&\z4 + \gamma_1\gamma_2\gamma_2\,m_{22} \\
&\z5 + \gamma_1\gamma_2\gamma_3\,m_{23} \\
&\z6 + \gamma_1\gamma_3\gamma_1\,m_{31} \\
&\z7 + \gamma_1\gamma_3\gamma_2\,m_{32} \\
&\z8 + \gamma_1\gamma_3\gamma_3\,m_{33} \smash{\Bigr]}
\end{aligned}
\end{equation}
\end{document}
答案2
像这样吗?
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath} % for 'aligned' environment
\begin{document}
\begin{equation} \label{someequation}
\begin{aligned}
\gamma_i\,\gamma_j\,\gamma_k\ \widetilde{M}_{jk} = \mathrm{const}_{\alpha}\,
& \bigl[\gamma_1\gamma_1\gamma_1\,m_{11} + {}\\
& \mkern0mu + \gamma_1\gamma_1\gamma_2\,m_{12} \\
& \mkern2mu + \gamma_1\gamma_1\gamma_3\,m_{13} \\
& \mkern4mu + \gamma_1\gamma_2\gamma_1\,m_{21} \\
& \mkern6mu + \gamma_1\gamma_2\gamma_2\,m_{22} \\
& \mkern8mu + \gamma_1\gamma_2\gamma_3\,m_{23} \\
& \mkern10mu + \gamma_1\gamma_3\gamma_1\,m_{31} \\
& \mkern12mu + \gamma_1\gamma_3\gamma_2\,m_{32} \\
& \mkern14mu + \gamma_1\gamma_3\gamma_3\,m_{33} \bigr].
\end{aligned}
\end{equation}
\end{document}