找回密码
 注册
查看: 9904|回复: 3

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

[复制链接]
发表于 2006-5-26 10:30:12 | 显示全部楼层 |阅读模式
[code:1]
\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}
[/code:1]
得到的结果还是右对齐。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2006-5-26 11:19:35 | 显示全部楼层
[code:1]
\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}
[/code:1]

这样就可以了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2006-5-26 16:57:32 | 显示全部楼层
[code:1]
\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}
[/code:1]
若你想在一个eqnarray里面实现对齐,就得使用&&

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2006-5-27 01:41:12 | 显示全部楼层
非常感谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-7-14 04:02 , Processed in 0.023646 second(s), 17 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表