Home > package amsmath > package amsmath error extra or on this line

Package Amsmath Error Extra Or On This Line

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top What is the mandatory argument of alignedat for? up vote 17 down vote favorite 2 alignedat has a mandatory argument. But Herbert (in his mathmode.pdf) wrote as follows, I have made a trial and error, I noticed that the largest number that can be passed is 1073741823 and no failure occurs. \documentclass[twocolumn]{article} \usepackage[a4paper,margin=1cm]{geometry} \usepackage{amsmath} \begin{document} \begin{enumerate} \item The degree of (C) is 3. \item The degree of (A) is 1. \item% $\! \begin{alignedat}[t]{1073741823} -3x(x+1)&-2x(x-1)\\ &+4(x^2-3x-1) &&=\rlap{$-3x^2-3x-2x^2+2x+v$} \\ & &&\hphantom{{}={}}{+}4x^2&&-12x-4\\ & &&=-3x^2 &&-3x-2x^2+2x+v \\ & && &&+4x^2-12x-4 \\ & &&=\rlap{$-x^2-13x-4$} \end{alignedat} $ \end{enumerate} \end{document} My question: What is this argument for? Why is it mandatory if it is not necessary? It should be an optional argument, I think. math-mode amsmath share|improve this question edited Jan 31 '13 at 9:16 Willie Wong 10.9k34679 asked Jan 31 '13 at 4:14 kiss my armpit 5,33613128314 The mbox file format strikes again! –Mariano Suárez-Álvarez Jan 31 '13 at 4:35 1 It stores the value in \maxfields@ and is used avoid using more than the specified number of alignment points. So, of course, using a large number would have no impact. –Werner Jan 31 '13 at 4:41 ... (continuing from Werner's comment) - indeed, you'll get errors if you use a value that is too small... –cmhughes Jan 31 '13 at 4:56 ...it also relates to a shared "base function" \start@aligned. It is shared between aligned and alignedat; the mandatory argument distinguishes a specific use of the base function. –Werner Jan 31 '13 at 5:21 4 It's mandatory because you want to use it for alignments you build the intercolumn spaces of and you want to be in control of what you're doing. If Herbert Voß has different opinions about this, they're just opinions: mine is that users should specify precisely what they want or use align. In any case, keep in mind that amsmath

News News in German Online Ressources PDF Viewers pgf/TikZ plain TeX TeX Live TeX User Group Tools for LaTeX Uncategorized Recent CommentsThomas on Vertical alignment of graphicstorben Skov on An extension to amsmath matrix environmentsGezulem on eqnarray vs. alignGezulem on eqnarray vs. alignJoab on Fancy chapter headings with TikZ eqnarray vs. align There's a lot of freely available documentation for LaTeX, but there's a pitfall: some documents that are still online are outdated and therefore contain obsolete information. Documents like "Obsolete packages and http://tex.stackexchange.com/questions/96124/what-is-the-mandatory-argument-of-alignedat-for commands" ("l2tabu") address the need of up-to-date information. For instance the obsolete eqnarray environment frequently appears in questions of new LaTeX users and many people including me usually answer: don't use eqnarray and give advice how to use the align environment of amsmath instead. Here's a summary of the problems with eqnarray: the spacing around relation symbols are inconsistent, http://texblog.net/latex-archive/maths/eqnarray-align-environment/ long equations might collide with the equation numbers, there could be problems with labels and references. Here is one small example document just to illustrate the space inconsistany problem: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \begin{document} \begin{minipage}{0.5\textwidth} equation: \begin{equation*} z_0 = d = 0 \end{equation*} \begin{equation*} z_{n+1} = z_n^2+c \end{equation*} align: \begin{align*} z_0 &= d = 0 \\ z_{n+1} &= z_n^2+c \end{align*} eqnarray: \begin{eqnarray*} z_0 &=& d = 0 \\ z_{n+1} &=& z_n^2+c \end{eqnarray*} \end{minipage} \end{document} Compile for yourself and examine it, if you want. For a quick look here's a screenshot of the output: Notice the difference of the spacing around the equal sign in the eqnarray environment compared to equation and even compared to the other equal sign inside the first eqnarray line. If you try to repair the spacing by adjusting \arraycolsep you will notice that all other arrays including matrices will be affected too. So the best solution is to use amsmath, this package provides even more environments useful for multiline formulas and a lot more enhancement for mathematical typesetting. See the amsmath user's guide.

be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 24 Oct 2016 00:02:32 GMT by s_wx1157 (squid/3.5.20)

be down. Please try the request again. Your cache administrator is webmaster. Generated Mon, 24 Oct 2016 00:02:32 GMT by s_wx1157 (squid/3.5.20)

 

Related content

package amsmath error

Package Amsmath Error table id toc tbody tr td div id toctitle Contents div ul li a href tag Latex a li li a href Mathit Allowed Only In Math Mode a li li a href Package Amsmath Error Erroneous Nesting Of Equation Structures Align a li ul td tr tbody table p here for a quick overview of relatedl the site Help Center Detailed answers to any package amsmath error multiple label s label questions you might have Meta Discuss the workings and policies of p h id tag Latex p this site About Us Learn more about Stack

package amsmath error latex

Package Amsmath Error Latex table id toc tbody tr td div id toctitle Contents div ul li a href Mathit Allowed Only In Math Mode a li li a href Align Latex a li li a href In Latex a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies relatedl of this site About Us Learn more about Stack Overflow the p h id Mathit Allowed Only In Math Mode p company Business Learn more about hiring developers

package amsmath error align

Package Amsmath Error Align table id toc tbody tr td div id toctitle Contents div ul li a href tag Latex a li li a href Align Equation Left Latex a li li a href Alignat Latex a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss relatedl the workings and policies of this site About Us Learn package amsmath error erroneous nesting of equation structures align more about Stack Overflow the company Business Learn more about hiring developers or posting package

package amsmath error multiple

Package Amsmath Error Multiple table id toc tbody tr td div id toctitle Contents div ul li a href Package Amsmath Error Multiple label s Label Will Be Lost a li li a href Label Multiple Equations Latex a li li a href Alignat Latex a li li a href Latex Subequations a li ul td tr tbody table p here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of relatedl this site About Us Learn more about Stack Overflow the company p h id

package amsmath error tag not allowed here

Package Amsmath Error Tag Not Allowed Here table id toc tbody tr td div id toctitle Contents div ul li a href Latex Equation Align a li li a href Latex Label Equation a li ul td tr tbody table p here for a quick overview of the site Help relatedl Center Detailed answers to any questions you might tag latex have Meta Discuss the workings and policies of this site About package amsmath error erroneous nesting of equation structures align Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with p