Place subscript below math operator and its following symbols
up vote
1
down vote
favorite
I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and its arguments.
Normal subscript
newcommand{E}[3]{mathbb{operatorname{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
Subscript below
This related question describes how to use mathop{}
to place the subscript underneath the operator. However, the large space around the operator takes up too much space.
newcommand{E}[3]{mathop{mathbb{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
I've also found this related question about left aligning the subscript but it still introduces a lot of space to the right of the operator.
Desired outcome
Here is an example of how I'd like the subscript to behave. Is should be left-aligned below the operator without creating additional spacing to the right of the operator.
spacing horizontal-alignment vertical-alignment subscripts
add a comment |
up vote
1
down vote
favorite
I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and its arguments.
Normal subscript
newcommand{E}[3]{mathbb{operatorname{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
Subscript below
This related question describes how to use mathop{}
to place the subscript underneath the operator. However, the large space around the operator takes up too much space.
newcommand{E}[3]{mathop{mathbb{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
I've also found this related question about left aligning the subscript but it still introduces a lot of space to the right of the operator.
Desired outcome
Here is an example of how I'd like the subscript to behave. Is should be left-aligned below the operator without creating additional spacing to the right of the operator.
spacing horizontal-alignment vertical-alignment subscripts
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and its arguments.
Normal subscript
newcommand{E}[3]{mathbb{operatorname{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
Subscript below
This related question describes how to use mathop{}
to place the subscript underneath the operator. However, the large space around the operator takes up too much space.
newcommand{E}[3]{mathop{mathbb{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
I've also found this related question about left aligning the subscript but it still introduces a lot of space to the right of the operator.
Desired outcome
Here is an example of how I'd like the subscript to behave. Is should be left-aligned below the operator without creating additional spacing to the right of the operator.
spacing horizontal-alignment vertical-alignment subscripts
I'm dealing with equations from statistics that include expectations over quite long expressions. To display those without too many line breaks, I'd like to place the subscript below the operator and its arguments.
Normal subscript
newcommand{E}[3]{mathbb{operatorname{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
Subscript below
This related question describes how to use mathop{}
to place the subscript underneath the operator. However, the large space around the operator takes up too much space.
newcommand{E}[3]{mathop{mathbb{E}}_{#2}#1[#3#1]}
E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}
I've also found this related question about left aligning the subscript but it still introduces a lot of space to the right of the operator.
Desired outcome
Here is an example of how I'd like the subscript to behave. Is should be left-aligned below the operator without creating additional spacing to the right of the operator.
spacing horizontal-alignment vertical-alignment subscripts
spacing horizontal-alignment vertical-alignment subscripts
edited 3 hours ago
asked 3 hours ago
danijar
279212
279212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Based on this recent answer, I'd suggest
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
You can e.g. use a vphantom
to move the subscript down.
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{vphantom{|^|}mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Based on this recent answer, I'd suggest
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
You can e.g. use a vphantom
to move the subscript down.
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{vphantom{|^|}mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
add a comment |
up vote
1
down vote
Based on this recent answer, I'd suggest
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
You can e.g. use a vphantom
to move the subscript down.
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{vphantom{|^|}mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
add a comment |
up vote
1
down vote
up vote
1
down vote
Based on this recent answer, I'd suggest
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
You can e.g. use a vphantom
to move the subscript down.
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{vphantom{|^|}mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
Based on this recent answer, I'd suggest
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
You can e.g. use a vphantom
to move the subscript down.
documentclass{article}
usepackage{amsfonts}
usepackage{mathtools}
newlengthmywdE
newcommand{E}[3]{settowidthmywdE{$mathbb{E}$}
mathop{mathbb{E}}_{vphantom{|^|}mathmakebox[0.5mywdE][l]{#2}}#1[#3#1]}
%
begin{document}
[E{q(s_{t-1} mid o_{leq t},a_{<t})}{p(s_t mid s_{t-1},a_{t-1})}]
end{document}
edited 2 hours ago
answered 3 hours ago
marmot
79.3k488166
79.3k488166
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
add a comment |
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
Thanks a lot! How would I move the subscript a bit further down to avoid overlaps, while keeping the spacing to the line below (to not create new overlap there)?
– danijar
3 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
@danijar I added a possible way.
– marmot
2 hours ago
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f462506%2fplace-subscript-below-math-operator-and-its-following-symbols%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