4
Currently, I am using the align method in this way:
begin{align}
mathcal{P}(Z leq z) &= mathcal{P}t{f_1(delta).f_2(delta)right} \
& = exp(mt) star left{frac{l}{2sqrt{pi t^3}} exp(-l^2/{4t})right} \
& = F_1 * F_2
end{align}
(sample code was found here)
This produces the following results (including an automatic equation line numbering system):
Would it be possible to replace those autonumbers with a description added in manually? I already know there is a way to remove the autonumbers, but I also would like to add some text to describe each line. Is this possible or too difficult to achieve?
align
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
add a comment|
4
Currently, I am using the align method in this way:
begin{align}
mathcal{P}(Z leq z) &= mathcal{P}t{f_1(delta).f_2(delta)right} \
& = exp(mt) star left{frac{l}{2sqrt{pi t^3}} exp(-l^2/{4t})right} \
& = F_1 * F_2
end{align}
(sample code was found here)
This produces the following results (including an automatic equation line numbering system):
Would it be possible to replace those autonumbers with a description added in manually? I already know there is a way to remove the autonumbers, but I also would like to add some text to describe each line. Is this possible or too difficult to achieve?
align
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
add a comment|
4
4
4
Currently, I am using the align method in this way:
begin{align}
mathcal{P}(Z leq z) &= mathcal{P}t{f_1(delta).f_2(delta)right} \
& = exp(mt) star left{frac{l}{2sqrt{pi t^3}} exp(-l^2/{4t})right} \
& = F_1 * F_2
end{align}
(sample code was found here)
This produces the following results (including an automatic equation line numbering system):
Would it be possible to replace those autonumbers with a description added in manually? I already know there is a way to remove the autonumbers, but I also would like to add some text to describe each line. Is this possible or too difficult to achieve?
align
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
Currently, I am using the align method in this way:
begin{align}
mathcal{P}(Z leq z) &= mathcal{P}t{f_1(delta).f_2(delta)right} \
& = exp(mt) star left{frac{l}{2sqrt{pi t^3}} exp(-l^2/{4t})right} \
& = F_1 * F_2
end{align}
(sample code was found here)
This produces the following results (including an automatic equation line numbering system):
Would it be possible to replace those autonumbers with a description added in manually? I already know there is a way to remove the autonumbers, but I also would like to add some text to describe each line. Is this possible or too difficult to achieve?
align
align
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
share|improve this question
share|improve this question
asked Jan 26 at 6:31
DaneologDaneolog
233
asked Jan 26 at 6:31
DaneologDaneolog
233
asked Jan 26 at 6:31
DaneologDaneolog
233
233
add a comment|
add a comment|
1 Answer
1
active
oldest
votes
5
You can use tag*{<stuff>}
to add descriptions without the surrounding (
...)
common to tags. If you want custom tags surrounded by (
...)
, use tag{<stuff>}
.
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } tag{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 tag{description2}
end{align*}
end{document}
It's probably better to use a macro-like approach through something like
newcommand{eqdesc}[2][2em]{tag*{#2}hspace{#1}}
which inserts a 2em
space at the end of the tag*
, effectively indenting it from the right-margin. This could separate it visually from other, regular tag
s, if needed.
A more tabular
-like display of descriptions is possible if you just add another equation into the mix:
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } &
text{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 &
text{description2}
end{align*}
end{document}
There will be a visible space between the equations to separate them.
share|improve this answer
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
@Daneolog: Yes.
tag
andtag*
are similar to equation numbering. In fact, if you use add alabel
, you canref
it later. If you're not using anylabel
-ref
s with these descriptions, you can manhandle them slightly using something likenewcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts atag*
with a default space of2em
on the right, effectively pushing it in2em
from the right margin. Useeqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?–Werner
Jan 26 at 6:49
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what
begin{tabular}
does here–Daneolog
Jan 26 at 6:56
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
@Daneolog: You can add another equation as your "description", encapsulating it inside
text
. I've added that as another option to my answer.–Werner
Jan 26 at 7:01
|
show 1 more 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
});
}
});
draft saved
draft discarded
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%2f471921%2fhow-to-describe-line-of-equation-instead-of-autonumbering%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
5
You can use tag*{<stuff>}
to add descriptions without the surrounding (
...)
common to tags. If you want custom tags surrounded by (
...)
, use tag{<stuff>}
.
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } tag{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 tag{description2}
end{align*}
end{document}
It's probably better to use a macro-like approach through something like
newcommand{eqdesc}[2][2em]{tag*{#2}hspace{#1}}
which inserts a 2em
space at the end of the tag*
, effectively indenting it from the right-margin. This could separate it visually from other, regular tag
s, if needed.
A more tabular
-like display of descriptions is possible if you just add another equation into the mix:
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } &
text{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 &
text{description2}
end{align*}
end{document}
There will be a visible space between the equations to separate them.
share|improve this answer
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
@Daneolog: Yes.
tag
andtag*
are similar to equation numbering. In fact, if you use add alabel
, you canref
it later. If you're not using anylabel
-ref
s with these descriptions, you can manhandle them slightly using something likenewcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts atag*
with a default space of2em
on the right, effectively pushing it in2em
from the right margin. Useeqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?–Werner
Jan 26 at 6:49
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what
begin{tabular}
does here–Daneolog
Jan 26 at 6:56
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
@Daneolog: You can add another equation as your "description", encapsulating it inside
text
. I've added that as another option to my answer.–Werner
Jan 26 at 7:01
|
show 1 more comment
5
You can use tag*{<stuff>}
to add descriptions without the surrounding (
...)
common to tags. If you want custom tags surrounded by (
...)
, use tag{<stuff>}
.
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } tag{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 tag{description2}
end{align*}
end{document}
It's probably better to use a macro-like approach through something like
newcommand{eqdesc}[2][2em]{tag*{#2}hspace{#1}}
which inserts a 2em
space at the end of the tag*
, effectively indenting it from the right-margin. This could separate it visually from other, regular tag
s, if needed.
A more tabular
-like display of descriptions is possible if you just add another equation into the mix:
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } &
text{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 &
text{description2}
end{align*}
end{document}
There will be a visible space between the equations to separate them.
share|improve this answer
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
@Daneolog: Yes.
tag
andtag*
are similar to equation numbering. In fact, if you use add alabel
, you canref
it later. If you're not using anylabel
-ref
s with these descriptions, you can manhandle them slightly using something likenewcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts atag*
with a default space of2em
on the right, effectively pushing it in2em
from the right margin. Useeqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?–Werner
Jan 26 at 6:49
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what
begin{tabular}
does here–Daneolog
Jan 26 at 6:56
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
@Daneolog: You can add another equation as your "description", encapsulating it inside
text
. I've added that as another option to my answer.–Werner
Jan 26 at 7:01
|
show 1 more comment
5
5
5
You can use tag*{<stuff>}
to add descriptions without the surrounding (
...)
common to tags. If you want custom tags surrounded by (
...)
, use tag{<stuff>}
.
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } tag{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 tag{description2}
end{align*}
end{document}
It's probably better to use a macro-like approach through something like
newcommand{eqdesc}[2][2em]{tag*{#2}hspace{#1}}
which inserts a 2em
space at the end of the tag*
, effectively indenting it from the right-margin. This could separate it visually from other, regular tag
s, if needed.
A more tabular
-like display of descriptions is possible if you just add another equation into the mix:
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } &
text{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 &
text{description2}
end{align*}
end{document}
There will be a visible space between the equations to separate them.
share|improve this answer
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
You can use tag*{<stuff>}
to add descriptions without the surrounding (
...)
common to tags. If you want custom tags surrounded by (
...)
, use tag{<stuff>}
.
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } tag{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 tag{description2}
end{align*}
end{document}
It's probably better to use a macro-like approach through something like
newcommand{eqdesc}[2][2em]{tag*{#2}hspace{#1}}
which inserts a 2em
space at the end of the tag*
, effectively indenting it from the right-margin. This could separate it visually from other, regular tag
s, if needed.
A more tabular
-like display of descriptions is possible if you just add another equation into the mix:
documentclass{article}usepackage{amsmath}
begin{document}
begin{align*}
mathcal{P}(Z leq z) &= mathcal{P} t {f_1(delta).f_2(delta) } &
text{description1} \
&= exp(mt) star left{ frac{ell}{2sqrt{pi t^3}} exp(-ell^2/{4t}) right} \
&= F_1 times F_2 &
text{description2}
end{align*}
end{document}
There will be a visible space between the equations to separate them.
share|improve this answer
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
share|improve this answer
share|improve this answer
edited Jan 26 at 7:00
edited Jan 26 at 7:00
edited Jan 26 at 7:00
answered Jan 26 at 6:39
WernerWerner
444k699791681
answered Jan 26 at 6:39
WernerWerner
444k699791681
answered Jan 26 at 6:39
WernerWerner
444k699791681
444k699791681
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
@Daneolog: Yes.
tag
andtag*
are similar to equation numbering. In fact, if you use add alabel
, you canref
it later. If you're not using anylabel
-ref
s with these descriptions, you can manhandle them slightly using something likenewcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts atag*
with a default space of2em
on the right, effectively pushing it in2em
from the right margin. Useeqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?–Werner
Jan 26 at 6:49
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what
begin{tabular}
does here–Daneolog
Jan 26 at 6:56
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
@Daneolog: You can add another equation as your "description", encapsulating it inside
text
. I've added that as another option to my answer.–Werner
Jan 26 at 7:01
|
show 1 more comment
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
@Daneolog: Yes.
tag
andtag*
are similar to equation numbering. In fact, if you use add alabel
, you canref
it later. If you're not using anylabel
-ref
s with these descriptions, you can manhandle them slightly using something likenewcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts atag*
with a default space of2em
on the right, effectively pushing it in2em
from the right margin. Useeqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?–Werner
Jan 26 at 6:49
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what
begin{tabular}
does here–Daneolog
Jan 26 at 6:56
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
@Daneolog: You can add another equation as your "description", encapsulating it inside
text
. I've added that as another option to my answer.–Werner
Jan 26 at 7:01
1
1
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
Hmm... is there any way to put it a little closer to the left instead of having it right-aligned to the entire page? It's a little nit-picky but it just looks kinda odd...
–Daneolog
Jan 26 at 6:42
1
1
@Daneolog: Yes. tag
and tag*
are similar to equation numbering. In fact, if you use add a label
, you can ref
it later. If you're not using any label
-ref
s with these descriptions, you can manhandle them slightly using something like newcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts a tag*
with a default space of 2em
on the right, effectively pushing it in 2em
from the right margin. Use eqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?
–Werner
Jan 26 at 6:49
@Daneolog: Yes. tag
and tag*
are similar to equation numbering. In fact, if you use add a label
, you can ref
it later. If you're not using any label
-ref
s with these descriptions, you can manhandle them slightly using something like newcommand{eqdesc}[2][2em]{tag*{#2hspace{#1}}}
. This puts a tag*
with a default space of 2em
on the right, effectively pushing it in 2em
from the right margin. Use eqdesc[3em]{stuff}
to change the default spacing. Is this more in line with what you're after?
–Werner
Jan 26 at 6:49
1
1
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what begin{tabular}
does here
–Daneolog
Jan 26 at 6:56
Hmm somewhat. I guess what I was technically going for was a more tabular format, similar to what begin{tabular}
does here
–Daneolog
Jan 26 at 6:56
1
1
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
This makes it look like the description is still left-oriented while on the right side of the equations.
–Daneolog
Jan 26 at 6:57
1
1
@Daneolog: You can add another equation as your "description", encapsulating it inside text
. I've added that as another option to my answer.
–Werner
Jan 26 at 7:01
@Daneolog: You can add another equation as your "description", encapsulating it inside text
. I've added that as another option to my answer.
–Werner
Jan 26 at 7:01
|
show 1 more comment
draft saved
draft discarded
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.
draft saved
draft discarded
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%2f471921%2fhow-to-describe-line-of-equation-instead-of-autonumbering%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
This page is only for reference, If you need detailed information, please check here
-February 18, 2019
');i++;if (r < relatedTitles.length - 1) {r++;} else {r = 0;}}document.write('
');relatedUrls.splice(0,relatedUrls.length);thumburl.splice(0,thumburl.length);relatedTitles.splice(0,relatedTitles.length);}//]]>