LaTeX技巧203:如何实现等号对齐_LaTeX_Fun_新浪博客

LaTeX技巧203:如何实现等号对齐_LaTeX_Fun_新浪博客html

咱们在进行公式的输入排版的时候,一般但愿公式比较齐整,因此须要一些等号对齐,或者左对齐,关于公式的左对齐前文已经介绍了方法。 http://blog.sina.com.cn/s/blog_5e16f1770100ggwo.html
下面咱们来介绍如何实现等号的对齐,主要是两种方法,第一是使用align这一环境,第二是使用eqnarray环境。咱们演示以下,
演示效果图:
LaTeX技巧203:如何实现等号对齐 演示代码: \documentclass{article} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{207.0pt} \usepackage{amsmath} \begin{document} \begin{align}   x^2 + y^2 &=  z^2 \\   x^3 + y^3 &<  z^3 \end{align} \begin{eqnarray}   x^2 + y^2 &=& z^2 \\   x^3 + y^3 &<& z^3 \end{eqnarray} \end{document}
相关文章
相关标签/搜索