Text not horizontally aligned with item
A bit nickpicky, but item
from enumerate
and flalign*
don't line up correctly, such that there is a small vertical distance between the two.
Code surrounding error:
begin{enumerate}
%some long text
item
begin{enumerate}
item
$x * y = dfrac{xy}{x+y+1}$
$y * x = dfrac{yx}{y+x+1} = dfrac{xy}{x+y+1}$
Since $x * y = y * x$, $*$ is communicative.
item
begin{flalign*}
x*(y*z) &= x* left(frac{yz}{y+z+1} right) &\
&= dfrac{x cdot frac{yz}{y+z+1}}{x + frac{yz}{y+z+1} + 1} &\
&= dfrac{xyz}{(x+1)(y+z+1) + yz} &\
&= dfrac{xyz}{xy+xz+yz + x+y+z + 1} &
end{flalign*}
%more long text
end{enumerate}
%even more text
end{enumerate}
vertical-alignment lists enumerate flalign
add a comment |
A bit nickpicky, but item
from enumerate
and flalign*
don't line up correctly, such that there is a small vertical distance between the two.
Code surrounding error:
begin{enumerate}
%some long text
item
begin{enumerate}
item
$x * y = dfrac{xy}{x+y+1}$
$y * x = dfrac{yx}{y+x+1} = dfrac{xy}{x+y+1}$
Since $x * y = y * x$, $*$ is communicative.
item
begin{flalign*}
x*(y*z) &= x* left(frac{yz}{y+z+1} right) &\
&= dfrac{x cdot frac{yz}{y+z+1}}{x + frac{yz}{y+z+1} + 1} &\
&= dfrac{xyz}{(x+1)(y+z+1) + yz} &\
&= dfrac{xyz}{xy+xz+yz + x+y+z + 1} &
end{flalign*}
%more long text
end{enumerate}
%even more text
end{enumerate}
vertical-alignment lists enumerate flalign
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52
add a comment |
A bit nickpicky, but item
from enumerate
and flalign*
don't line up correctly, such that there is a small vertical distance between the two.
Code surrounding error:
begin{enumerate}
%some long text
item
begin{enumerate}
item
$x * y = dfrac{xy}{x+y+1}$
$y * x = dfrac{yx}{y+x+1} = dfrac{xy}{x+y+1}$
Since $x * y = y * x$, $*$ is communicative.
item
begin{flalign*}
x*(y*z) &= x* left(frac{yz}{y+z+1} right) &\
&= dfrac{x cdot frac{yz}{y+z+1}}{x + frac{yz}{y+z+1} + 1} &\
&= dfrac{xyz}{(x+1)(y+z+1) + yz} &\
&= dfrac{xyz}{xy+xz+yz + x+y+z + 1} &
end{flalign*}
%more long text
end{enumerate}
%even more text
end{enumerate}
vertical-alignment lists enumerate flalign
A bit nickpicky, but item
from enumerate
and flalign*
don't line up correctly, such that there is a small vertical distance between the two.
Code surrounding error:
begin{enumerate}
%some long text
item
begin{enumerate}
item
$x * y = dfrac{xy}{x+y+1}$
$y * x = dfrac{yx}{y+x+1} = dfrac{xy}{x+y+1}$
Since $x * y = y * x$, $*$ is communicative.
item
begin{flalign*}
x*(y*z) &= x* left(frac{yz}{y+z+1} right) &\
&= dfrac{x cdot frac{yz}{y+z+1}}{x + frac{yz}{y+z+1} + 1} &\
&= dfrac{xyz}{(x+1)(y+z+1) + yz} &\
&= dfrac{xyz}{xy+xz+yz + x+y+z + 1} &
end{flalign*}
%more long text
end{enumerate}
%even more text
end{enumerate}
vertical-alignment lists enumerate flalign
vertical-alignment lists enumerate flalign
asked Feb 16 at 16:47
Enver AmanEnver Aman
134
134
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52
add a comment |
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52
add a comment |
1 Answer
1
active
oldest
votes
flalign
is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii
appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.
To use display math in an enumeration use
item $begin{aligned}[t].....
begin{aligned}[t]
is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.
Thanks for the help! This was exactly what I was looking for! For future use, what does the[t]
do in thealigned
environment, and are there other optional parameters you could input?
– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try[b]
to see the difference (orc
) @EnverAman
– David Carlisle
Feb 16 at 20:14
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%2f475215%2ftext-not-horizontally-aligned-with-item%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
flalign
is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii
appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.
To use display math in an enumeration use
item $begin{aligned}[t].....
begin{aligned}[t]
is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.
Thanks for the help! This was exactly what I was looking for! For future use, what does the[t]
do in thealigned
environment, and are there other optional parameters you could input?
– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try[b]
to see the difference (orc
) @EnverAman
– David Carlisle
Feb 16 at 20:14
add a comment |
flalign
is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii
appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.
To use display math in an enumeration use
item $begin{aligned}[t].....
begin{aligned}[t]
is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.
Thanks for the help! This was exactly what I was looking for! For future use, what does the[t]
do in thealigned
environment, and are there other optional parameters you could input?
– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try[b]
to see the difference (orc
) @EnverAman
– David Carlisle
Feb 16 at 20:14
add a comment |
flalign
is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii
appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.
To use display math in an enumeration use
item $begin{aligned}[t].....
begin{aligned}[t]
is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.
flalign
is a display enviornment that takes the full width of the page and offsets the display with vertical space so the fact that the ii
appears to the left of it is more or less accidental and there is no possibility of it aligning with the first line of text.
To use display math in an enumeration use
item $begin{aligned}[t].....
begin{aligned}[t]
is designed to do exactly what you want, produce an alignment with its reference point on the first line so other text will align with the first line of the display.
answered Feb 16 at 16:58
David CarlisleDavid Carlisle
491k4111351883
491k4111351883
Thanks for the help! This was exactly what I was looking for! For future use, what does the[t]
do in thealigned
environment, and are there other optional parameters you could input?
– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try[b]
to see the difference (orc
) @EnverAman
– David Carlisle
Feb 16 at 20:14
add a comment |
Thanks for the help! This was exactly what I was looking for! For future use, what does the[t]
do in thealigned
environment, and are there other optional parameters you could input?
– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try[b]
to see the difference (orc
) @EnverAman
– David Carlisle
Feb 16 at 20:14
Thanks for the help! This was exactly what I was looking for! For future use, what does the
[t]
do in the aligned
environment, and are there other optional parameters you could input?– Enver Aman
Feb 16 at 18:11
Thanks for the help! This was exactly what I was looking for! For future use, what does the
[t]
do in the aligned
environment, and are there other optional parameters you could input?– Enver Aman
Feb 16 at 18:11
[t]
for top (which is what you asked for, try [b]
to see the difference (or c
) @EnverAman– David Carlisle
Feb 16 at 20:14
[t]
for top (which is what you asked for, try [b]
to see the difference (or c
) @EnverAman– David Carlisle
Feb 16 at 20:14
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%2f475215%2ftext-not-horizontally-aligned-with-item%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
Welcome to TeX.SX! Please help us help you by turning your code into a minimal compilable code example (MWE).
– TeXnician
Feb 16 at 16:52