File:Latex math example gather.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 800 × 122 pixels. Other resolution: 950 × 145 pixels.
Original file (950 × 145 pixels, file size: 4 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionLatex math example gather.png |
I created a sample LaTeX file containing all the possible ways to display a formula. The source is the following: \documentclass[a5paper,12pt]{article} \usepackage{amsmath} \begin{document} one centered formula, without label: \begin{equation*} a x^2 + b x + c = 0 \end{equation*} one centered formula, with label: \begin{equation} a x^2 + b x + c = 0 \end{equation} several centered formulas, without label: \begin{gather*} a x + b = 0 \\ a x^2 + b x + c = 0 \\ a x^3 + b x^2 + c x + d = 0 \end{gather*} several centered formulas, one label for all of them: \begin{equation} \begin{gathered} a x + b = 0 \\ a x^2 + b x + c = 0 \\ a x^3 + b x^2 + c x + d = 0 \end{gathered} \end{equation} several centered formulas, each with its own label \begin{gather} a x + b = 0 \\ a x^2 + b x + c = 0 \\ a x^3 + b x^2 + c x + d = 0 \end{gather} several formulas, any alignment, without label: \begin{flalign*} 10xy^2+15x^2y-5xy & = 5\left(2xy^2+3x^2y-xy\right) = \\ & = 5x\left(2y^2+3xy-y\right) = \\ & = 5xy\left(2y+3x-1\right) \end{flalign*} several formulas, any alignment, each with its own label: \begin{flalign} 10xy^2+15x^2y-5xy & = 5\left(2xy^2+3x^2y-xy\right) = \\ & = 5x\left(2y^2+3xy-y\right) = \\ & = 5xy\left(2y+3x-1\right) \end{flalign} several formulas, any alignment, one label for all of them \begin{equation} \begin{split} 10xy^2+15x^2y-5xy & = 5\left(2xy^2+3x^2y-xy\right) = \\ & = 5x\left(2y^2+3xy-y\right) = \\ & = 5xy\left(2y+3x-1\right) \end{split} \end{equation} splitting a long formula on several lines. The first line is left-aligned, the last one is right-aligned, all the others are centered:. \begin{multline} \left(1+x\right)^n = 1 + nx + \frac{n\left(n-1\right)}{2!}x^2 +\\ + \frac{n\left(n-1\right)\left(n-2\right)}{3!}x^3 +\\ + \frac{n\left(n-1\right)\left(n-2\right)\left(n-3\right)}{4!}x^4 + \dots \end{multline} subordinate numbering: \begin{subequations} \begin{gather} a x + b = 0 \\ a x^2 + b x + c = 0 \\ a x^3 + b x^2 + c x + d = 0 \end{gather} \end{subequations} boxed formula: \begin{equation*} \boxed{a x^2 + b x + c = 0} \end{equation*} \end{document}then I compiled it in PDF and I took screenshots of all the types of formula separately using GIMP. The picture above is one of those screenshots. To be used in the wikibook about LaTeX |
Date | |
Source | Own work |
Author | Alessio Damato |
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:07, 9 October 2006 | 950 × 145 (4 KB) | Alejo2083 (talk | contribs) | {{Information |Description=I created a sample LaTeX file containing all the possible ways to display a formula. The source is the following: <pre> \documentclass[a5paper,12pt]{article} \usepackage{amsmath} \begin{document} one centered formula, withou |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.