Difference between revisions of "Talk:LaTeX:Math"

(possible syntax error in an example on this page)
Line 7: Line 7:
 
: 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)
 
::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)

Revision as of 02:00, 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)