等式未完全位于 flalign 的左侧

等式未完全位于 flalign 的左侧

我使用以下代码将等式放在左侧。但如您所见,它并不完全在左侧,而数字 (1) 位于列的右侧。

\documentclass[conference]{IEEEtran}
\usepackage[fleqn]{amsmath}
\begin{document}
This is the text. This is the text. This is the text. This is the text. This is the text. 
\begin{flalign}
    \label{c}
    C = \frac{X}{Y}
\end{flalign}
This is the text. This is the text. This is the text. This is the text. This is the text.   
\end{document}

在此处输入图片描述

我该如何修复它?

答案1

在此处输入图片描述

\documentclass[conference]{IEEEtran}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0pt}% ADDED
\begin{document}
This is the text. This is the text. This is the text. This is the text. This is the text. 
\begin{flalign}
    \label{c}
    C = \frac{X}{Y}
\end{flalign}
This is the text. This is the text. This is the text. This is the text. This is the text.   
\end{document}

相关内容