Difference between revisions of "Talk:LaTeX:Math"

m (Added name)
 
(3 intermediate revisions by 3 users not shown)
Line 5: Line 5:
 
Could someone please rewrite the section on equation arrays to use the align environment rather than the eqnarray environment?  I would do it myself, except that I don't have the time right now. --roadnottaken
 
Could someone please rewrite the section on equation arrays to use the align environment rather than the eqnarray environment?  I would do it myself, except that I don't have the time right now. --roadnottaken
  
No, it's an example on eqnarray. So it must use the eqnarray environment. --[[User:1=2|1=2]] 10:42, 12 March 2008 (EDT)
+
: No, it's an example on eqnarray. So it must use the eqnarray environment. --[[User:1=2|1=2]] 10:42, 12 March 2008 (EDT)
 +
::eqnarray is obsolete; see http://www.artofproblemsolving.com/Forum/viewtopic.php?t=188177 .  Will someone please double-check that I've actually changed it all correctly?  roadnottaken, you can sign your comments by typing four tildes (<nowiki>~~~~</nowiki>), and the wiki will automatically format it. --[[User:JBL|JBL]] 15:28, 12 March 2008 (EDT)
 +
 
 +
The following code taken from this page is giving me a compilation error:
 +
 
 +
Finally, note that in an align environment, you can use the \nonumber command if you want only some lines to be numbered. For example,
 +
\documentclass{article}
 +
\usepackage{amsmath}
 +
\begin{document}
 +
\begin{align}
 +
2x^2 + 3(x-1)(x-2) & = 2x^2 + 3(x^2-3x+2)\\
 +
\nonumber &= 2x^2 + 3x^2 - 9x + 6\\
 +
&= 5x^2 - 9x + 6
 +
\end{align*}
 +
\end{document}
 +
 
 +
Would somebody who's good at LaTeX please check and see if this is a mistake?--[[User:Singularitarian|Singularitarian]] 06:00, 27 September 2008 (UTC)
 +
 
 +
\end{align*} should be \end{align}. I have changed it on the page - stevem

Latest revision as of 09:51, 27 September 2008

I can't get the link "user's guide for the amsmath package" to bring anything up.


Could someone please rewrite the section on equation arrays to use the align environment rather than the eqnarray environment? I would do it myself, except that I don't have the time right now. --roadnottaken

No, it's an example on eqnarray. So it must use the eqnarray environment. --1=2 10:42, 12 March 2008 (EDT)
eqnarray is obsolete; see http://www.artofproblemsolving.com/Forum/viewtopic.php?t=188177 . Will someone please double-check that I've actually changed it all correctly? roadnottaken, you can sign your comments by typing four tildes (~~~~), and the wiki will automatically format it. --JBL 15:28, 12 March 2008 (EDT)

The following code taken from this page is giving me a compilation error:

Finally, note that in an align environment, you can use the \nonumber command if you want only some lines to be numbered. For example, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} 2x^2 + 3(x-1)(x-2) & = 2x^2 + 3(x^2-3x+2)\\ \nonumber &= 2x^2 + 3x^2 - 9x + 6\\ &= 5x^2 - 9x + 6 \end{align*} \end{document}

Would somebody who's good at LaTeX please check and see if this is a mistake?--Singularitarian 06:00, 27 September 2008 (UTC)

\end{align*} should be \end{align}. I have changed it on the page - stevem