Text not horizontally aligned with item












0















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}


Output (red circle at spacing issue)










share|improve this question























  • 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
















0















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}


Output (red circle at spacing issue)










share|improve this question























  • 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














0












0








0








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}


Output (red circle at spacing issue)










share|improve this question














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}


Output (red circle at spacing issue)







vertical-alignment lists enumerate flalign






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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










1 Answer
1






active

oldest

votes


















2














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.






share|improve this answer
























  • 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











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


















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









2














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.






share|improve this answer
























  • 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
















2














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.






share|improve this answer
























  • 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














2












2








2







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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 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



















  • 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

















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


















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














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?