How do I align (1) and (2)? The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)What are good learning resources for a LaTeX beginner?Why is [ … ] preferable to $$ … $$?What are the differences between $$, [, align, equation and displaymath?Table and graph do not alignAlign text and logoHow do you align equations parts vertically?How to vertically align column membersHow to align author names?How do I align piecewise functions?How to vertically align undersets?Align section numbers and titleHow can I align?nomencl - right align abbreviation and left align descriptions followed by units
University's motivation for having tenure-track positions
What can I do if neighbor is blocking my solar panels intentionally?
Does Parliament hold absolute power in the UK?
What's the point in a preamp?
"... to apply for a visa" or "... and applied for a visa"?
Match Roman Numerals
How to copy the contents of all files with a certain name into a new file?
Is this wall load bearing? Blueprints and photos attached
Is every episode of "Where are my Pants?" identical?
Can a novice safely splice in wire to lengthen 5V charging cable?
Can the DM override racial traits?
What aspect of planet Earth must be changed to prevent the industrial revolution?
Is there a writing software that you can sort scenes like slides in PowerPoint?
Empty set is subset of every set? If yes, why that...
Was credit for the black hole image misattributed?
How to test the equality of two Pearson correlation coefficients computed from the same sample?
Hopping to infinity along a string of digits
What do you call a plan that's an alternative plan in case your initial plan fails?
Mortgage adviser recommends a longer term than necessary combined with overpayments
Can smartphones with the same camera sensor have different image quality?
Finding the path in a graph from A to B then back to A with a minimum of shared edges
Why is superheterodyning better than direct conversion?
How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?
Are spiders unable to hurt humans, especially very small spiders?
How do I align (1) and (2)?
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)What are good learning resources for a LaTeX beginner?Why is [ … ] preferable to $$ … $$?What are the differences between $$, [, align, equation and displaymath?Table and graph do not alignAlign text and logoHow do you align equations parts vertically?How to vertically align column membersHow to align author names?How do I align piecewise functions?How to vertically align undersets?Align section numbers and titleHow can I align?nomencl - right align abbreviation and left align descriptions followed by units
The following code
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
$$f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n hspace1cm(1)$$
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
$$f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )$$ hfill (2)
endtheoremhrulefill
produces
How can I align the (1) and (2), and also get (2) to be on the same line as (n=1,2,3,...)?
vertical-alignment
|
show 1 more comment
The following code
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
$$f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n hspace1cm(1)$$
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
$$f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )$$ hfill (2)
endtheoremhrulefill
produces
How can I align the (1) and (2), and also get (2) to be on the same line as (n=1,2,3,...)?
vertical-alignment
1
Changehspace1cm
tohfill
. Better you use the automatic numbering than doing it by your own ...
– Kurt
Mar 30 at 17:57
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude$$... $$
syntax in a latex document. It does not follow latex configurations.
– daleif
Mar 30 at 17:58
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
2
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07
|
show 1 more comment
The following code
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
$$f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n hspace1cm(1)$$
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
$$f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )$$ hfill (2)
endtheoremhrulefill
produces
How can I align the (1) and (2), and also get (2) to be on the same line as (n=1,2,3,...)?
vertical-alignment
The following code
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
$$f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n hspace1cm(1)$$
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
$$f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )$$ hfill (2)
endtheoremhrulefill
produces
How can I align the (1) and (2), and also get (2) to be on the same line as (n=1,2,3,...)?
vertical-alignment
vertical-alignment
edited Mar 30 at 18:01
K.M
asked Mar 30 at 17:53
K.MK.M
1817
1817
1
Changehspace1cm
tohfill
. Better you use the automatic numbering than doing it by your own ...
– Kurt
Mar 30 at 17:57
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude$$... $$
syntax in a latex document. It does not follow latex configurations.
– daleif
Mar 30 at 17:58
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
2
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07
|
show 1 more comment
1
Changehspace1cm
tohfill
. Better you use the automatic numbering than doing it by your own ...
– Kurt
Mar 30 at 17:57
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude$$... $$
syntax in a latex document. It does not follow latex configurations.
– daleif
Mar 30 at 17:58
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
2
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07
1
1
Change
hspace1cm
to hfill
. Better you use the automatic numbering than doing it by your own ...– Kurt
Mar 30 at 17:57
Change
hspace1cm
to hfill
. Better you use the automatic numbering than doing it by your own ...– Kurt
Mar 30 at 17:57
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude
$$... $$
syntax in a latex document. It does not follow latex configurations.– daleif
Mar 30 at 17:58
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude
$$... $$
syntax in a latex document. It does not follow latex configurations.– daleif
Mar 30 at 17:58
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
2
2
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07
|
show 1 more comment
3 Answers
3
active
oldest
votes
I highly suggest to use a different approach:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry% I do not recommend to use this naiv canons of page construction for typographic reasons.
usepackage[noabbrev]cleveref%new package
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginalign%observe that empty line is removed
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n labeleq:Taylor
endalign%observe that empty line is removed
is called the emphTaylor series for f around $z_0$.%The definition is not in italics here to emphasize the term.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginalign
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots ).%every parenthesis should be ended with a dot.
endalign
endtheorem
noindenthrulefill %alternative: hrule
You can use refer to the equation by: eqrefeq:Taylor or crefeq:Taylor. %This is the usual approach to refer to formulas.
enddocument
Please read the comments in the code and What are the differences between $$, [, align, equation and displaymath?. Other useful staff is written in https://ctan.org/pkg/short-math-guide, https://ctan.org/pkg/lshort-english, and What are good learning resources for a LaTeX beginner?.
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
Why are you usingalign
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to useequation
.
– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examplesalign
gives a similar result.
– CampanIgnis
Mar 30 at 20:57
add a comment |
Use another approach, with the equation
environment:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginequation
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n
endequation
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginequation
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )
endequation
endtheorem
hrulefill
enddocument
3
Never leave a blank line beforebeginequation
. One afterendequation
can go, in case the equation ends the paragraph, which is not the case here.
– egreg
Mar 31 at 19:22
add a comment |
One of the key features of (La)TeX is its ability to automatically number sections, theorems, list items and so on for you. This includes equations! Using
beginequation
labelsomename
e=mc^2
endequation
creates an equation with the next number in sequence, and you can refer back to it with eqrefsomename
. Just as with other automatically numbered thing, you can insert a new numbered equation before this one and all the numbers will be correctly updated. You can create unnumbered equations with the equation*
environment (or, with less typing, [ ... ]
). Other equation-like environments also have a *
version that doesn't number.
Note that it is not recommended to use $$...$$
for equations in LaTeX.
(Also, I'd strongly recommend numbering all Definitions, Theorems, etc. in the same series. It's really annoying to be looking for Theorem 4 in a long document when seeing Lemma 3 and Definition 5 give you no hint about whether you should look backwards or forwards.)
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482302%2fhow-do-i-align-1-and-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I highly suggest to use a different approach:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry% I do not recommend to use this naiv canons of page construction for typographic reasons.
usepackage[noabbrev]cleveref%new package
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginalign%observe that empty line is removed
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n labeleq:Taylor
endalign%observe that empty line is removed
is called the emphTaylor series for f around $z_0$.%The definition is not in italics here to emphasize the term.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginalign
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots ).%every parenthesis should be ended with a dot.
endalign
endtheorem
noindenthrulefill %alternative: hrule
You can use refer to the equation by: eqrefeq:Taylor or crefeq:Taylor. %This is the usual approach to refer to formulas.
enddocument
Please read the comments in the code and What are the differences between $$, [, align, equation and displaymath?. Other useful staff is written in https://ctan.org/pkg/short-math-guide, https://ctan.org/pkg/lshort-english, and What are good learning resources for a LaTeX beginner?.
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
Why are you usingalign
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to useequation
.
– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examplesalign
gives a similar result.
– CampanIgnis
Mar 30 at 20:57
add a comment |
I highly suggest to use a different approach:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry% I do not recommend to use this naiv canons of page construction for typographic reasons.
usepackage[noabbrev]cleveref%new package
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginalign%observe that empty line is removed
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n labeleq:Taylor
endalign%observe that empty line is removed
is called the emphTaylor series for f around $z_0$.%The definition is not in italics here to emphasize the term.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginalign
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots ).%every parenthesis should be ended with a dot.
endalign
endtheorem
noindenthrulefill %alternative: hrule
You can use refer to the equation by: eqrefeq:Taylor or crefeq:Taylor. %This is the usual approach to refer to formulas.
enddocument
Please read the comments in the code and What are the differences between $$, [, align, equation and displaymath?. Other useful staff is written in https://ctan.org/pkg/short-math-guide, https://ctan.org/pkg/lshort-english, and What are good learning resources for a LaTeX beginner?.
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
Why are you usingalign
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to useequation
.
– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examplesalign
gives a similar result.
– CampanIgnis
Mar 30 at 20:57
add a comment |
I highly suggest to use a different approach:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry% I do not recommend to use this naiv canons of page construction for typographic reasons.
usepackage[noabbrev]cleveref%new package
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginalign%observe that empty line is removed
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n labeleq:Taylor
endalign%observe that empty line is removed
is called the emphTaylor series for f around $z_0$.%The definition is not in italics here to emphasize the term.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginalign
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots ).%every parenthesis should be ended with a dot.
endalign
endtheorem
noindenthrulefill %alternative: hrule
You can use refer to the equation by: eqrefeq:Taylor or crefeq:Taylor. %This is the usual approach to refer to formulas.
enddocument
Please read the comments in the code and What are the differences between $$, [, align, equation and displaymath?. Other useful staff is written in https://ctan.org/pkg/short-math-guide, https://ctan.org/pkg/lshort-english, and What are good learning resources for a LaTeX beginner?.
I highly suggest to use a different approach:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry% I do not recommend to use this naiv canons of page construction for typographic reasons.
usepackage[noabbrev]cleveref%new package
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginalign%observe that empty line is removed
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n labeleq:Taylor
endalign%observe that empty line is removed
is called the emphTaylor series for f around $z_0$.%The definition is not in italics here to emphasize the term.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginalign
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots ).%every parenthesis should be ended with a dot.
endalign
endtheorem
noindenthrulefill %alternative: hrule
You can use refer to the equation by: eqrefeq:Taylor or crefeq:Taylor. %This is the usual approach to refer to formulas.
enddocument
Please read the comments in the code and What are the differences between $$, [, align, equation and displaymath?. Other useful staff is written in https://ctan.org/pkg/short-math-guide, https://ctan.org/pkg/lshort-english, and What are good learning resources for a LaTeX beginner?.
edited Apr 9 at 21:49
answered Mar 30 at 18:06
CampanIgnisCampanIgnis
3,11721034
3,11721034
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
Why are you usingalign
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to useequation
.
– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examplesalign
gives a similar result.
– CampanIgnis
Mar 30 at 20:57
add a comment |
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
Why are you usingalign
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to useequation
.
– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examplesalign
gives a similar result.
– CampanIgnis
Mar 30 at 20:57
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
Can the downvoter please explain what is bad about this solution?
– CampanIgnis
Mar 30 at 18:16
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
+1 for the answer, however you should mentioned in it that op approach to numbering of equations should be as you used in your answers.
– Zarko
Mar 30 at 18:20
4
4
Why are you using
align
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to use equation
.– barbara beeton
Mar 30 at 20:01
Why are you using
align
for one-line equations? It's not meant for that; it's meant for multi-line equations. Better to use equation
.– barbara beeton
Mar 30 at 20:01
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examples
align
gives a similar result.– CampanIgnis
Mar 30 at 20:57
@barbarabeeton That is a fair point. Because I am sometimes lazy and in many (simple) examples
align
gives a similar result.– CampanIgnis
Mar 30 at 20:57
add a comment |
Use another approach, with the equation
environment:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginequation
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n
endequation
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginequation
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )
endequation
endtheorem
hrulefill
enddocument
3
Never leave a blank line beforebeginequation
. One afterendequation
can go, in case the equation ends the paragraph, which is not the case here.
– egreg
Mar 31 at 19:22
add a comment |
Use another approach, with the equation
environment:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginequation
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n
endequation
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginequation
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )
endequation
endtheorem
hrulefill
enddocument
3
Never leave a blank line beforebeginequation
. One afterendequation
can go, in case the equation ends the paragraph, which is not the case here.
– egreg
Mar 31 at 19:22
add a comment |
Use another approach, with the equation
environment:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginequation
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n
endequation
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginequation
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )
endequation
endtheorem
hrulefill
enddocument
Use another approach, with the equation
environment:
documentclassarticle
usepackage[utf8]inputenc
usepackage[english]babel
usepackageamsthm
usepackageamsmath
usepackage[left=1.5in, right=1.5in, top=0.5in]geometry
newtheoremdefinitionDefinition
newtheoremtheoremTheorem
theoremstyleremark
begindocument
titleExtra Credit
maketitle
begindefinition
If f is analytic at $z_0$, then the series
beginequation
f(z_0) + f'(z_0)(z-z_0) + fracf''(z_0)2!(z-z_0)^2 + cdots = sum_n=0^infty fracf^(n)(z_0)n!(z-z_0)^n
endequation
is called the Taylor series for f around $z_0$.
enddefinition
begintheorem
If f is analytic inside and on the simple closed positively oriented contour $Gamma$ and if $z_0$ is any point inside $Gamma$, then
beginequation
f^(n)(z_0) = fracn!2pi i int_Gamma fracf(zeta)(zeta - z_0)^n+1dzeta hspace1cm (n=1,2,3, cdots )
endequation
endtheorem
hrulefill
enddocument
answered Mar 30 at 18:10
Vinccool96Vinccool96
51412
51412
3
Never leave a blank line beforebeginequation
. One afterendequation
can go, in case the equation ends the paragraph, which is not the case here.
– egreg
Mar 31 at 19:22
add a comment |
3
Never leave a blank line beforebeginequation
. One afterendequation
can go, in case the equation ends the paragraph, which is not the case here.
– egreg
Mar 31 at 19:22
3
3
Never leave a blank line before
beginequation
. One after endequation
can go, in case the equation ends the paragraph, which is not the case here.– egreg
Mar 31 at 19:22
Never leave a blank line before
beginequation
. One after endequation
can go, in case the equation ends the paragraph, which is not the case here.– egreg
Mar 31 at 19:22
add a comment |
One of the key features of (La)TeX is its ability to automatically number sections, theorems, list items and so on for you. This includes equations! Using
beginequation
labelsomename
e=mc^2
endequation
creates an equation with the next number in sequence, and you can refer back to it with eqrefsomename
. Just as with other automatically numbered thing, you can insert a new numbered equation before this one and all the numbers will be correctly updated. You can create unnumbered equations with the equation*
environment (or, with less typing, [ ... ]
). Other equation-like environments also have a *
version that doesn't number.
Note that it is not recommended to use $$...$$
for equations in LaTeX.
(Also, I'd strongly recommend numbering all Definitions, Theorems, etc. in the same series. It's really annoying to be looking for Theorem 4 in a long document when seeing Lemma 3 and Definition 5 give you no hint about whether you should look backwards or forwards.)
add a comment |
One of the key features of (La)TeX is its ability to automatically number sections, theorems, list items and so on for you. This includes equations! Using
beginequation
labelsomename
e=mc^2
endequation
creates an equation with the next number in sequence, and you can refer back to it with eqrefsomename
. Just as with other automatically numbered thing, you can insert a new numbered equation before this one and all the numbers will be correctly updated. You can create unnumbered equations with the equation*
environment (or, with less typing, [ ... ]
). Other equation-like environments also have a *
version that doesn't number.
Note that it is not recommended to use $$...$$
for equations in LaTeX.
(Also, I'd strongly recommend numbering all Definitions, Theorems, etc. in the same series. It's really annoying to be looking for Theorem 4 in a long document when seeing Lemma 3 and Definition 5 give you no hint about whether you should look backwards or forwards.)
add a comment |
One of the key features of (La)TeX is its ability to automatically number sections, theorems, list items and so on for you. This includes equations! Using
beginequation
labelsomename
e=mc^2
endequation
creates an equation with the next number in sequence, and you can refer back to it with eqrefsomename
. Just as with other automatically numbered thing, you can insert a new numbered equation before this one and all the numbers will be correctly updated. You can create unnumbered equations with the equation*
environment (or, with less typing, [ ... ]
). Other equation-like environments also have a *
version that doesn't number.
Note that it is not recommended to use $$...$$
for equations in LaTeX.
(Also, I'd strongly recommend numbering all Definitions, Theorems, etc. in the same series. It's really annoying to be looking for Theorem 4 in a long document when seeing Lemma 3 and Definition 5 give you no hint about whether you should look backwards or forwards.)
One of the key features of (La)TeX is its ability to automatically number sections, theorems, list items and so on for you. This includes equations! Using
beginequation
labelsomename
e=mc^2
endequation
creates an equation with the next number in sequence, and you can refer back to it with eqrefsomename
. Just as with other automatically numbered thing, you can insert a new numbered equation before this one and all the numbers will be correctly updated. You can create unnumbered equations with the equation*
environment (or, with less typing, [ ... ]
). Other equation-like environments also have a *
version that doesn't number.
Note that it is not recommended to use $$...$$
for equations in LaTeX.
(Also, I'd strongly recommend numbering all Definitions, Theorems, etc. in the same series. It's really annoying to be looking for Theorem 4 in a long document when seeing Lemma 3 and Definition 5 give you no hint about whether you should look backwards or forwards.)
answered Mar 30 at 23:34
David RicherbyDavid Richerby
20517
20517
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482302%2fhow-do-i-align-1-and-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Change
hspace1cm
tohfill
. Better you use the automatic numbering than doing it by your own ...– Kurt
Mar 30 at 17:57
Show your full work not just sniplet, we need a full but minimal example. Also you should not ude
$$... $$
syntax in a latex document. It does not follow latex configurations.– daleif
Mar 30 at 17:58
@daleif: What do I use instead? Also, I edited and added the preamble.
– K.M
Mar 30 at 18:04
@Kurt: For whatever reason that makes (1) shift to the left. How would I incorporate the automatic numbering?
– K.M
Mar 30 at 18:05
2
Never even noticed you're setting the equation numbers by hand. You really should read a proper introduction to latex. You're already using amsmath, it provides many useful math constructions. Plus latex it self provides the equation environment which does exactly what you want here, automatically!
– daleif
Mar 30 at 18:07