Talk:LaTeX/Advanced Mathematics

Packages, and general behavior
I come here to see new commands, but unfortunately with all the examples few of them specify what environment you need to be in or what packages you need installed. I find that none of these new commands I learned here today are usable for me since I dont know how to call their packages. Why do sites and pages such as these always fail to point out the most fundamental and the most necessary points? You dont tell a ten year old how to bake bread and leave out the fact that the ingredients call for flour. Why do (so-called) "educational" sites and pages always treat you like you already know what youre doing? 76.104.137.50 (discuss) 23:30, 2 December 2011 (UTC)

yep
I find this wikibook useful but since yesterday something happened to make this site much less useful! Could you pleae return it to where it was yesterday? Today it just looks awful and I can no longer find the references that I need. —The preceding unsigned comment was added by 128.62.117.199 (talk • contribs) 04:02, 11 November 2008.
 * Sorry, I have started to rearrange the mathematics sections as they were rather confusingly laid out, and with lots of content either missing or duplicated. Could you elaborate more on what you find awful, and what you can't find? -3mta3 (talk) 13:40, 11 November 2008 (UTC)

(different person here) There used to be a very good discussion of the various equation numbering options equation, flalign, flalign* etc, with examples around here ... somewhere. I found that extremely useful. It seems to have vanished. Has it been moved somewhere? —The preceding unsigned comment was added by 131.172.99.15 (talk • contribs) 00:25, 26 October 2009.


 * The old version of the page you are referring to is here. I tried to make it more succinct, as I thought it was needlessly complicated (also it uses  instead of the more common   environment). In your opinion, is there anything from the old page you think would be valuable (I noticed the   environment is no longer mentioned)? Would it be worth creating an article focused on equation numbering?–3mta3 (talk) 13:55, 26 October 2009 (UTC)

Incorrect syntax - fix me please!
copy-pasting the code does NOT work and results in a parse error; one has to edit the page and grab the "real code" (which is not the same as the displayed code)

$$

\left.\begin{align} B'&=-\partial \times E,\\ E'&=\partial \times B - 4\pi j, \end{align}\right\}\quad\text{Maxwell}'\text{s equations}\qquad\mathrm{(1.1)} $$


 * The displayed code text fine for me. Here is the whole syntax of my latex document:


 * The difficulty with grabbing the using the "real code" is that the implementation in wikibooks of latex does not automatically number anything, so that code always produces a label of (1.1), it is hard coded in there. If I recall correctly align, aligned, etc. are AMS routines, so if you have a document class of something like "article" or "book" then you need to use the correct package.  If you don't load the correct package you'll get a parser error.  My example above uses "amsart" so all the necessary AMS packages get loaded. Thenub314 (talk) 19:28, 21 October 2010 (UTC)

(different person) For accuracy: Can we put vector arrows on Maxwell's equations? The equations don't make physical or mathematical sense without them.

Align vs. Split
Many of the uses of the align environment documented on this page (namely, a single equation split over multiple lines) should use the split (or split* if appropriate) environment instead, which is also provided by the amsmath package. The split environment is designed for a single equation that must be split over multiple lines; its syntax is identical to that of align, except that it assigns a single number to the entire equation (so there is no need for \nonumber and the number is aligned vertically). According to the amsmath documentation, align (and <tt>align*</tt>) are meant for arranging multiple different equations, not one.&mdash;Kbolino (discuss • contribs) 08:09, 22 April 2011 (UTC)

spacing around signs of relation
in some of the examples, in particular those which create "compound" signs of relation with and  (in the section on "vertically aligning displayed mathematics"), the spacing is too tight. compare the space around an "unadorned" equals sign. this can be fixed by declaring the compound to be but that's not entirely trivial, and would require explanation so that it's not confusing to a novice. as i'm not at all well versed in updating wiki code, i hesitate to try to make any revisions, but hope that someone with the requisite knowledge will do so. Bbeeton (discuss • contribs) 18:26, 18 April 2012 (UTC)

How to number with the same number an equation that occurs twice in a document?
Hello everybody,

I had the problem described in the title of this topic and I would find great if s.o. can add a solution to solve this problem. I found a solution here: http://compgroups.net/comp.text.tex/how-to-reuse-the-equation-number/268199

Thanks in advance.

Overlapping under/over braces
I was thinking this article should mention a way to do overlapping under/over braces. Here are a couple of examples. Albeit they are ugly examples:

I am not sure if there is a way to make zero-space expressions work on wikis. \lefteqn{} works with the appropriate package (I think amsmath).

Does anyone know if there are any packages to make this easier? It would be great if there were a way to say something like:

\start{underbrace{depth=1}} a + \start{underbrace{depth=2}} b \end{underbrace{depth=1}} + c + d \end{underbrace{depth=2}}

Adding AMSLaTeX commands
I tried to add a new example to the section about environments like \align, \gather etc. It was It was impossible to render it. It tried many changes to the source, but I gave up. Any idea about the problem? My guess is that gather requires amsmath, which might be the problem. Anyway, I would be happy if somebody added this example, because I find the combination of gather and split pretty useful.
 * This wouldn't be the first time an image has had to be uploaded to use as an example. You can upload it to wikimedia commons and insert it into the text quite easily.  I have it rendering in my installation without explicitly saying \usepackage{amsmath} but I suspect one of the other packages in the test file I used calls it.  It would be best for you to upload it - you know what it's meant to look like! ChrisHodgesUK (discuss • contribs) 15:12, 19 February 2013 (UTC)
 * Can somebody do it for me, please? I do not have a confirmed account. The image is at https://www.vutbr.cz/www_base/gigadisk.php?i=89099a223 . Thanks. Cheers. Hana
 * I've inserted it (I actually rerendered it for - slightly - higher resolution and being honest in the creation info on commons). I haven't put anything in to explain it - maybe you'd like to as I've never really used these environments. ChrisHodgesUK (discuss • contribs) 08:16, 23 May 2013 (UTC)

\underbracket and \overbracket aren't a part of the amsmath package
The \underbracket and \overbracket macros aren't a part of the amsmath package. Which package do I have to Include. I've tried  but that works only for underbracket and only without a text underneath it. A dirty workaround for putting text underneath the underbracket is to use this method: I think that somebody should mention, which package you have to include. --88.69.40.58 (discuss) 15:56, 7 October 2013 (UTC)

better example how align works
can be found here: http://www.sharelatex.com/learn/Aligning_equations_with_amsmath#Aligning_several_equations maybe we can replace the current example.

Use of \substack with \underbrace and \overbrace to get line breaks should be explained
Cf. this StackExchange thread. Thomas Tvileren (discuss • contribs) 12:29, 2 May 2014 (UTC)

\displaystyle / cramped mode
We don't currently explain that <tt>\displaystyle</tt> also makes the text uncramped. (See http://tex.stackexchange.com/questions/154474/how-to-prevent-superscripts-from-moving-under-sqrt). Anyone care to explain this concept? Cramped style doesn't seem to be mentioned anywhere in this WikiBook. Bgeron (discuss • contribs) 16:49, 20 November 2015 (UTC)

Subscript of subscript
For here: https://commons.wikimedia.org/wiki/File:Equation_I.JPG : $$A_{t+1}=A_{t}(S_{A})$$ $$A_{t+1}=A_{t}(S_{A}_{t})$$User000name (discuss • contribs) 17:18, 22 January 2016 (UTC)

Other fail from LaTeX/Advanced Mathematics: $$ \[ H \xrightharpoondown[under]{over} I\\ \% I \xrightharpoonup[under]{over} J\\ \% J \xleftharpoondown[under]{over} K\\ \% K \xleftharpoonup[under]{over} L\\ \% L \xrightleftharpoons[under]{over} M\\ \% M \xleftrightharpoons[under]{over} N \] $$User000name (discuss • contribs) 06:36, 22 May 2016 (UTC)

Example doesn't give expected result
It would be helpful to have a minimum working example (MWE) along with at least one of the given sources. For example, for the above source I don't get seven lines typeset one above the other, as the article displays, but instead next to each other. This is the MWE that I have tried:

--2003:71:F55:5D00:D108:67A9:8F8B:409A (discuss) 19:56, 23 June 2016 (UTC)


 * is a simple displayed math environment and cannot have linebreaks. What you are looking for is, or  , or ...--Johannes Bo (discuss • contribs) 07:20, 24 June 2016 (UTC)

Images with white symbols hidden inside
Some images (e.g. the 1st and 4th) have white "ww" hidden inside, between the equation and the number part.

I notice this because I use a browser extension to darken the page, and the "ww" appeared, in (reverted from white) black (while the page background is dark but not entirely black). It can also be observed by dragging the image over colored texts.

Is that intentional? --Renyuneyun (discuss • contribs) 15:59, 25 July 2019 (UTC)