如何取消LaTex公式的缩进,

来源:百度知道 编辑:UC知道 时间:2024/09/28 09:17:21
使用\usepackage[fleqn]{amsmath} 目的本来是让公式左对齐的
但是公式总是有左缩进(跟段落的第一行对齐),
采用\noindent 只对 文本中的公式起作用, 对单独成行的公式不起作用。
哪位朋友遇到同样的问题,实在不知道该怎么办了

解决方案:
首先,这一命令适用于\usepackage[fleqn]{amsmath}或者\documentclass[fleqn]{article}
我们就可以重新定义公式的左边缩进,使得公式顶格。如下为对比实例。

演示代码:
\documentclass[fleqn]{article}
\usepackage{amsmath}
\usepackage{array}

\begin{document}
The case of three buildings considering spherical wave incidence with soft polarization is presented
\begin{equation}
y=a b c d e f g h i j k l m
\end{equation}
The case of three buildings considering spherical wave incidence with soft polarization is presented
\setlength{\mathindent}{0cm}
\begin{equation}
y=a b c d e f g h i j k l m
\end{equation}

\end{document}

\begin{eqnarray}
\hspace{-50mm}&=& equation1\\
\hspace{-50mm}&=& equation2\\
......
\end{eqnarray}