LaTeX users online
In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm
Users browsing this forum: No registered users and 5 guests
Too long equationLaTeX Forum: Math & ScienceAdd tags
7 posts
• Page 1 of 1
Hello everybody,
I have a very long equation and this causes me some problems. I want it to look the following way: left side = right side\\ +continuation of right side\\ =right side again modified\\ +continuation of the modified right side\\ =result I first used the align environment:
However, the problem is, that I'm doing this in a presentation and the column width is limited. Despite of that {align} doesn't adjust the expression to the margins of the slide (by braking the expression before a + or a - sign and continuing it on the next line), but makes it go out of the whole page area. I thought of multline, however, the problem is, that multline aligns the first row left the second to last but one rows centered and last row right. This works well, if one has an expression of the type a+b=c+d+e+f+g+h=j, where there's only one row between initial row and result. However, in my case, I have some mathematical transformation (meaning an additional row) and so I need the equal sign of the row: "12\times6+14\times\dfrac{48}{7}-6^2-\left(\dfrac{2}{7}-4\right)^2-\left(\dfrac{48}{7}\right)^2 -\dfrac{2}{7}\times\dfrac{48}{7}-\left(\dfrac{2}{7}\right)^2" to be aligned under the first equal sign. So now I use this version:
Does anybody have better ideas? Thank you
You can try the split environment, which is also provided by the amsmath package. To get a proper alignment, there are some tricky things to do.
Note that the alignment as known from the align environment has to be put into the split environment. More hints about typesetting mathematical expressions are given in "Math mode". Best regards Thorsten LaTeX Community Moderator
How to make a "Minimal Example" Board Rules Avoidable Mistakes ¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351) ² Posting stopped indefinitely due to offenses
Here you have a different approach through the aligned environment:
The \! command removes a small space before the contents of the aligned environment. Note, in addition, the use of \coloneqq instead of :=. You can also get this character from txfonts. Finally, comparing with your second code, remark the braces after =, needed to get a proper spacing. The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Hi,
we discussed a very similar issue today on Matheplanet. Btw. I would try to use & at the equal sign. If you consider the mathematical style of multiline equations, perhaps have a look at for instance IEEE Computer Society Style Guide - Mathematical Expressions: If line breaks are needed in equations that appear in a paragraph, they should come after a plus sign, equals sign, or similar character. But of course there may be different styles. Stefan LaTeX Community Administrator
Concerning the discussion in MathPlanet, I can't follow it, since I don't understand German. Anyway, please note that the quoted advice given in the IEEE guide applies to inline formulas (i.e. formulas inside paragraphs). However, in displayed formulas, the line break comes before binary relations or operators. So, in the code you posted in MathPlanet, I would suggest to move the + signs to the beginning of the next line (they are not properly spaced indeed). I apologize if I shouldn't refer here to topics in a different forum. The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Hi Juanjo,
I just mentioned the topic of the other forum because of the coincidence of similar code, aligned inside align. Just wanted to point at the code, not at the discussion in german. I remembered the line break after plus/minus etc. and just gave the link to that style guide quickly, I did not reed further. Now I read the part on displayed equations too. If you know more ressources concerning mathematical style I would be glad to know. Stefan LaTeX Community Administrator
Hi Stefan,
The primary resource I know is the following book: Ellen Swanson: Mathematics into Type. Updated by Arlene O'Sean and Antoinette Schleyer. American Mathematical Society, 1999. It is cited in every author's guide for the publications of the AMS. There are similar books, like that of N. J. Higham cited in the IEEE page you linked, or Handbook of Typography for the Mathematical Sciences, by Steven G. Krantz, published by Chapman& Hall. Since I have access to these books, I have not needed to search for online resources. I've found anyway an interesting page here. Surely, a careful search would yield more suitable links. By the way, congratulations for your TeXblog, that up to today I hadn't had got time to visit in detail. The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
7 posts
• Page 1 of 1
LaTeX users onlineUsers browsing this forum: No registered users and 5 guests |