binbindatou 发表于 2006-5-26 10:30:12

LaTeX公式怎样才能左对齐呢?


\documentclass[a4paper,fleqn]{article}
\setlength{\mathindent}{2ex}
\begin{document}
\LaTeXe

\begin{quote}
text 1 \small text 2 \bfseries text3
\end{quote}
\begin{eqnarray}
P(q_i\bar{q_j})=A exp(-km_i^2)exp(-km_j^2)=aexp(-b_{ij}) \\
P(q_iq_jq_k)= A'exp(-km_i^2)exp(-km_j^2)exp(-km_k^2)=a'exp(-bm_{ijk})
\end{eqnarray}
\end{document}

得到的结果还是右对齐。

superpig 发表于 2006-5-26 11:19:35


\documentclass[a4paper,fleqn]{article}
\setlength{\mathindent}{2ex}
\begin{document}
\LaTeXe

\begin{quote}
text 1 \small text 2 \bfseries text3
\end{quote}
\begin{eqnarray}
P(q_i\bar{q_j})=A exp(-km_i^2)exp(-km_j^2)=aexp(-b_{ij})
\end{eqnarray}
\begin{eqnarray}
P(q_iq_jq_k)=A'exp(-km_i^2)exp(-km_j^2)exp(-km_k^2)=a'exp(-bm_{ijk})
\end{eqnarray}
\end{document}


这样就可以了

superpig 发表于 2006-5-26 16:57:32


\documentclass[a4paper,fleqn]{article}
\setlength{\mathindent}{2ex}
\begin{document}
\LaTeXe

\begin{quote}
text 1 \small text 2 \bfseries text3
\end{quote}
\begin{eqnarray}
&& P(q_i\bar{q_j})=A exp(-km_i^2)exp(-km_j^2)=aexp(-b_{ij}) \\
&& P(q_iq_jq_k)=A'exp(-km_i^2)exp(-km_j^2)exp(-km_k^2)=a'exp(-bm_{ijk})
\end{eqnarray}
\end{document}

若你想在一个eqnarray里面实现对齐,就得使用&&

binbindatou 发表于 2006-5-27 01:41:12

非常感谢!
页: [1]
查看完整版本: LaTeX公式怎样才能左对齐呢?