我正在使用 WinEdit 9.0 和 MikeTex 2.9。
我的文件序言如下:
% ----------------------------------------------------------------
% Article Class (This is a LaTeX2e document) ********************
% ----------------------------------------------------------------
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}
% THEOREMS -------------------------------------------------------
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\numberwithin{equation}{section}
% ----------------------------------------------------------------
\begin{document}
...
我如何使用\begin{flushleft} \end{flushleft}
命令使内容\begin{eqnarray*} \end{eqnarray*}
从输出文档的左边距开始.pdf
,而不是(在我看来)其默认的居中设置?
答案1
最好使用amsmath
对齐方式,eqnarray
但无论哪种方式,您都可以通过使用
\documentclass[12pt,fleqn]{article}
答案2
这是一个解决方案,flalign(*)
从修补mathmath
到环境中leftalign(*)
,带有一个可选参数:方程式缩进(默认\parindent
):
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[showframe, noheadfoot, nomarginpar]{geometry}
\usepackage{mathtools}
\makeatletter
\newenvironment{leftalign*}[1][\parindent]{\setlength\hangindent{#1}\start@align\tw@\st@rredtrue\m@ne}{\endalign}
\newenvironment{leftalign}{\hangindent = \parindent \start@align\tw@\st@rredfalse\m@ne}{\endalign}
\makeatother
\begin{document}
Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.
With \texttt{leftalign*}:
\begin{leftalign*}
A & = B & \\
C & = D + E + F + D + E + F + D + E + F + D + E + F = 4( D + E + F)&
\end{leftalign*}
Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.\\
With \texttt{flalign*}:
\begin{flalign*}
A & = B & & & & \\
C & = D + E + F + D + E + F + D + E + F + D + E + F = 4( D + E + F)& &
\end{flalign*}
Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.
\end{document}