setlengthitemsep throwing a weird bug











up vote
2
down vote

favorite












I have to edit a LaTeX template for an assignment, which involves solving multiple choice questions. The code for one of these questions is as follows :



begin{list}{$square$}{}
setlengthitemsep{-1.5em}
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$\
item The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$\
item The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$\
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item None of the above
end{list}


The problem with this is that I don't know how to mark my answers (only two of these choices are right, and should be marked with a black square). I've tried to remove the {$square$} from the first line, and add $square$ next to each item, with $blacksquare$ next to the options I want marked.



begin{list}{}
setlengthitemsep{-1.5em}
item $square$ The current observation $x_t$ is conditionally independent
of all other observations given the current state $y_t$\
item $square$ The current observation $x_t$ is conditionally independent
of all other states given the current state $y_t$\
item $square$ The current state $y_t$ is conditionally independent of all
states given the previous state $y_{t-1}$\
item $square$ The current observation $x_t$ is conditionally independent
of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item $square$ None of the above
end{list}


And that worked for the previous question. But with this one, when I do it and compile, this happens.



It's that pesky !-1.5em. And I don't know how to get rid of it. I tried removing the setlengthitemsep{-1.5em} but that results in the spacing between items increasing to whatever the default value was and the contents of this page spill over onto the next one, which is unacceptable to the autograder. What do I do? It's incredibly annoying.



This is the error I get at the setlengthitemsep{-1.5em} line. (I've tried putting the itemsep in curly brackets too, as an answer said, to no avail.) enter image description here










share|improve this question









New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
    – Chinmay Hejmadi
    2 days ago






  • 3




    provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
    – Herbert
    2 days ago










  • Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
    – CarLaTeX
    2 days ago












  • To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
    – CarLaTeX
    2 days ago










  • Thank you so much!!!! That worked. Something to remember now for the future.
    – Chinmay Hejmadi
    2 days ago















up vote
2
down vote

favorite












I have to edit a LaTeX template for an assignment, which involves solving multiple choice questions. The code for one of these questions is as follows :



begin{list}{$square$}{}
setlengthitemsep{-1.5em}
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$\
item The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$\
item The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$\
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item None of the above
end{list}


The problem with this is that I don't know how to mark my answers (only two of these choices are right, and should be marked with a black square). I've tried to remove the {$square$} from the first line, and add $square$ next to each item, with $blacksquare$ next to the options I want marked.



begin{list}{}
setlengthitemsep{-1.5em}
item $square$ The current observation $x_t$ is conditionally independent
of all other observations given the current state $y_t$\
item $square$ The current observation $x_t$ is conditionally independent
of all other states given the current state $y_t$\
item $square$ The current state $y_t$ is conditionally independent of all
states given the previous state $y_{t-1}$\
item $square$ The current observation $x_t$ is conditionally independent
of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item $square$ None of the above
end{list}


And that worked for the previous question. But with this one, when I do it and compile, this happens.



It's that pesky !-1.5em. And I don't know how to get rid of it. I tried removing the setlengthitemsep{-1.5em} but that results in the spacing between items increasing to whatever the default value was and the contents of this page spill over onto the next one, which is unacceptable to the autograder. What do I do? It's incredibly annoying.



This is the error I get at the setlengthitemsep{-1.5em} line. (I've tried putting the itemsep in curly brackets too, as an answer said, to no avail.) enter image description here










share|improve this question









New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
    – Chinmay Hejmadi
    2 days ago






  • 3




    provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
    – Herbert
    2 days ago










  • Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
    – CarLaTeX
    2 days ago












  • To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
    – CarLaTeX
    2 days ago










  • Thank you so much!!!! That worked. Something to remember now for the future.
    – Chinmay Hejmadi
    2 days ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have to edit a LaTeX template for an assignment, which involves solving multiple choice questions. The code for one of these questions is as follows :



begin{list}{$square$}{}
setlengthitemsep{-1.5em}
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$\
item The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$\
item The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$\
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item None of the above
end{list}


The problem with this is that I don't know how to mark my answers (only two of these choices are right, and should be marked with a black square). I've tried to remove the {$square$} from the first line, and add $square$ next to each item, with $blacksquare$ next to the options I want marked.



begin{list}{}
setlengthitemsep{-1.5em}
item $square$ The current observation $x_t$ is conditionally independent
of all other observations given the current state $y_t$\
item $square$ The current observation $x_t$ is conditionally independent
of all other states given the current state $y_t$\
item $square$ The current state $y_t$ is conditionally independent of all
states given the previous state $y_{t-1}$\
item $square$ The current observation $x_t$ is conditionally independent
of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item $square$ None of the above
end{list}


And that worked for the previous question. But with this one, when I do it and compile, this happens.



It's that pesky !-1.5em. And I don't know how to get rid of it. I tried removing the setlengthitemsep{-1.5em} but that results in the spacing between items increasing to whatever the default value was and the contents of this page spill over onto the next one, which is unacceptable to the autograder. What do I do? It's incredibly annoying.



This is the error I get at the setlengthitemsep{-1.5em} line. (I've tried putting the itemsep in curly brackets too, as an answer said, to no avail.) enter image description here










share|improve this question









New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have to edit a LaTeX template for an assignment, which involves solving multiple choice questions. The code for one of these questions is as follows :



begin{list}{$square$}{}
setlengthitemsep{-1.5em}
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$\
item The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$\
item The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$\
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item None of the above
end{list}


The problem with this is that I don't know how to mark my answers (only two of these choices are right, and should be marked with a black square). I've tried to remove the {$square$} from the first line, and add $square$ next to each item, with $blacksquare$ next to the options I want marked.



begin{list}{}
setlengthitemsep{-1.5em}
item $square$ The current observation $x_t$ is conditionally independent
of all other observations given the current state $y_t$\
item $square$ The current observation $x_t$ is conditionally independent
of all other states given the current state $y_t$\
item $square$ The current state $y_t$ is conditionally independent of all
states given the previous state $y_{t-1}$\
item $square$ The current observation $x_t$ is conditionally independent
of $x_{t-2}$ given the previous observation $x_{t-1}$.\
item $square$ None of the above
end{list}


And that worked for the previous question. But with this one, when I do it and compile, this happens.



It's that pesky !-1.5em. And I don't know how to get rid of it. I tried removing the setlengthitemsep{-1.5em} but that results in the spacing between items increasing to whatever the default value was and the contents of this page spill over onto the next one, which is unacceptable to the autograder. What do I do? It's incredibly annoying.



This is the error I get at the setlengthitemsep{-1.5em} line. (I've tried putting the itemsep in curly brackets too, as an answer said, to no avail.) enter image description here







formatting lists






share|improve this question









New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









CarLaTeX

27.1k445118




27.1k445118






New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Chinmay Hejmadi

133




133




New contributor




Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Chinmay Hejmadi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
    – Chinmay Hejmadi
    2 days ago






  • 3




    provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
    – Herbert
    2 days ago










  • Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
    – CarLaTeX
    2 days ago












  • To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
    – CarLaTeX
    2 days ago










  • Thank you so much!!!! That worked. Something to remember now for the future.
    – Chinmay Hejmadi
    2 days ago


















  • The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
    – Chinmay Hejmadi
    2 days ago






  • 3




    provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
    – Herbert
    2 days ago










  • Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
    – CarLaTeX
    2 days ago












  • To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
    – CarLaTeX
    2 days ago










  • Thank you so much!!!! That worked. Something to remember now for the future.
    – Chinmay Hejmadi
    2 days ago
















The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
– Chinmay Hejmadi
2 days ago




The error message at the setlengthitemsep{-1.5em} line is this : Package calc error: `topsep' invalid at this point. What is going on?
– Chinmay Hejmadi
2 days ago




3




3




provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
– Herbert
2 days ago




provide a complete example which shows the error message. Using your code snippet with package calc gives no error!
– Herbert
2 days ago












Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
– CarLaTeX
2 days ago






Leave out the \ at the end of the items and set setlengthitemsep{-.4em}
– CarLaTeX
2 days ago














To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
– CarLaTeX
2 days ago




To mark only the correct ones use item[$blacksquare$] only for the correct items and leave {$square$} as the option of the list environment.
– CarLaTeX
2 days ago












Thank you so much!!!! That worked. Something to remember now for the future.
– Chinmay Hejmadi
2 days ago




Thank you so much!!!! That worked. Something to remember now for the future.
– Chinmay Hejmadi
2 days ago










2 Answers
2






active

oldest

votes

















up vote
3
down vote



accepted










The list environment takes two arguments and in your second example you are only feeding it one. It therefore uses the next token, which is setlength, as its second argument. Using begin{list}{}{} instead of begin{list}{} therefore removes the error.



As for the problem you were originally trying to solve: the item macro has an optional argument which you can use to specify its label. The following should thus do what you want.



documentclass{article}

usepackage{amssymb} %% <- for square and blacksquare

begin{document}

begin{list}{$square$}{}
setlengthitemsep{-.4em}
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$
item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$
item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
item None of the above
end{list}

end{document}


output



You could save yourself some typing by e.g. defining



newcommand*correctitem{item[$blacksquare$]}


and using that instead of typing it out every time.







Incidentally, the contents of the second argument of list is executed right before the start of the actual list.
It would be more appropriate to put setlengthitemsep{-.4em} inside this argument, like this:



begin{list}{$square$}{setlengthitemsep{-.4em}}


For itemsep it makes little difference, but if you want to set e.g. topsep, doing this inside the environment is actually too late.






share|improve this answer























  • Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
    – Chinmay Hejmadi
    2 days ago


















up vote
4
down vote













Instead of going crazy setting the itemsep you could use enumitem package with nosep option.



documentclass{article}
usepackage{amssymb}
usepackage{enumitem}
renewcommand{labelitemi}{$square$}
begin{document}
begin{itemize}[nosep]
item The current observation $x_t$ is conditionally independent of all
other observations given the current state $y_t$
item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
other states given the current state $y_t$
item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
item None of the above
end{itemize}
end{document}


enter image description here






share|improve this answer





















    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',
    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
    });


    }
    });






    Chinmay Hejmadi is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459269%2fsetlength-itemsep-throwing-a-weird-bug%23new-answer', 'question_page');
    }
    );

    Post as a guest
































    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    The list environment takes two arguments and in your second example you are only feeding it one. It therefore uses the next token, which is setlength, as its second argument. Using begin{list}{}{} instead of begin{list}{} therefore removes the error.



    As for the problem you were originally trying to solve: the item macro has an optional argument which you can use to specify its label. The following should thus do what you want.



    documentclass{article}

    usepackage{amssymb} %% <- for square and blacksquare

    begin{document}

    begin{list}{$square$}{}
    setlengthitemsep{-.4em}
    item The current observation $x_t$ is conditionally independent of all
    other observations given the current state $y_t$
    item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
    other states given the current state $y_t$
    item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
    item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
    item None of the above
    end{list}

    end{document}


    output



    You could save yourself some typing by e.g. defining



    newcommand*correctitem{item[$blacksquare$]}


    and using that instead of typing it out every time.







    Incidentally, the contents of the second argument of list is executed right before the start of the actual list.
    It would be more appropriate to put setlengthitemsep{-.4em} inside this argument, like this:



    begin{list}{$square$}{setlengthitemsep{-.4em}}


    For itemsep it makes little difference, but if you want to set e.g. topsep, doing this inside the environment is actually too late.






    share|improve this answer























    • Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
      – Chinmay Hejmadi
      2 days ago















    up vote
    3
    down vote



    accepted










    The list environment takes two arguments and in your second example you are only feeding it one. It therefore uses the next token, which is setlength, as its second argument. Using begin{list}{}{} instead of begin{list}{} therefore removes the error.



    As for the problem you were originally trying to solve: the item macro has an optional argument which you can use to specify its label. The following should thus do what you want.



    documentclass{article}

    usepackage{amssymb} %% <- for square and blacksquare

    begin{document}

    begin{list}{$square$}{}
    setlengthitemsep{-.4em}
    item The current observation $x_t$ is conditionally independent of all
    other observations given the current state $y_t$
    item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
    other states given the current state $y_t$
    item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
    item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
    item None of the above
    end{list}

    end{document}


    output



    You could save yourself some typing by e.g. defining



    newcommand*correctitem{item[$blacksquare$]}


    and using that instead of typing it out every time.







    Incidentally, the contents of the second argument of list is executed right before the start of the actual list.
    It would be more appropriate to put setlengthitemsep{-.4em} inside this argument, like this:



    begin{list}{$square$}{setlengthitemsep{-.4em}}


    For itemsep it makes little difference, but if you want to set e.g. topsep, doing this inside the environment is actually too late.






    share|improve this answer























    • Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
      – Chinmay Hejmadi
      2 days ago













    up vote
    3
    down vote



    accepted







    up vote
    3
    down vote



    accepted






    The list environment takes two arguments and in your second example you are only feeding it one. It therefore uses the next token, which is setlength, as its second argument. Using begin{list}{}{} instead of begin{list}{} therefore removes the error.



    As for the problem you were originally trying to solve: the item macro has an optional argument which you can use to specify its label. The following should thus do what you want.



    documentclass{article}

    usepackage{amssymb} %% <- for square and blacksquare

    begin{document}

    begin{list}{$square$}{}
    setlengthitemsep{-.4em}
    item The current observation $x_t$ is conditionally independent of all
    other observations given the current state $y_t$
    item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
    other states given the current state $y_t$
    item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
    item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
    item None of the above
    end{list}

    end{document}


    output



    You could save yourself some typing by e.g. defining



    newcommand*correctitem{item[$blacksquare$]}


    and using that instead of typing it out every time.







    Incidentally, the contents of the second argument of list is executed right before the start of the actual list.
    It would be more appropriate to put setlengthitemsep{-.4em} inside this argument, like this:



    begin{list}{$square$}{setlengthitemsep{-.4em}}


    For itemsep it makes little difference, but if you want to set e.g. topsep, doing this inside the environment is actually too late.






    share|improve this answer














    The list environment takes two arguments and in your second example you are only feeding it one. It therefore uses the next token, which is setlength, as its second argument. Using begin{list}{}{} instead of begin{list}{} therefore removes the error.



    As for the problem you were originally trying to solve: the item macro has an optional argument which you can use to specify its label. The following should thus do what you want.



    documentclass{article}

    usepackage{amssymb} %% <- for square and blacksquare

    begin{document}

    begin{list}{$square$}{}
    setlengthitemsep{-.4em}
    item The current observation $x_t$ is conditionally independent of all
    other observations given the current state $y_t$
    item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
    other states given the current state $y_t$
    item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
    item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
    item None of the above
    end{list}

    end{document}


    output



    You could save yourself some typing by e.g. defining



    newcommand*correctitem{item[$blacksquare$]}


    and using that instead of typing it out every time.







    Incidentally, the contents of the second argument of list is executed right before the start of the actual list.
    It would be more appropriate to put setlengthitemsep{-.4em} inside this argument, like this:



    begin{list}{$square$}{setlengthitemsep{-.4em}}


    For itemsep it makes little difference, but if you want to set e.g. topsep, doing this inside the environment is actually too late.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 2 days ago

























    answered 2 days ago









    Circumscribe

    2,4581324




    2,4581324












    • Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
      – Chinmay Hejmadi
      2 days ago


















    • Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
      – Chinmay Hejmadi
      2 days ago
















    Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
    – Chinmay Hejmadi
    2 days ago




    Thanks a lot! That did work. I shall keep this in mind now, especially that last trick.
    – Chinmay Hejmadi
    2 days ago










    up vote
    4
    down vote













    Instead of going crazy setting the itemsep you could use enumitem package with nosep option.



    documentclass{article}
    usepackage{amssymb}
    usepackage{enumitem}
    renewcommand{labelitemi}{$square$}
    begin{document}
    begin{itemize}[nosep]
    item The current observation $x_t$ is conditionally independent of all
    other observations given the current state $y_t$
    item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
    other states given the current state $y_t$
    item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
    item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
    item None of the above
    end{itemize}
    end{document}


    enter image description here






    share|improve this answer

























      up vote
      4
      down vote













      Instead of going crazy setting the itemsep you could use enumitem package with nosep option.



      documentclass{article}
      usepackage{amssymb}
      usepackage{enumitem}
      renewcommand{labelitemi}{$square$}
      begin{document}
      begin{itemize}[nosep]
      item The current observation $x_t$ is conditionally independent of all
      other observations given the current state $y_t$
      item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
      other states given the current state $y_t$
      item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
      item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
      item None of the above
      end{itemize}
      end{document}


      enter image description here






      share|improve this answer























        up vote
        4
        down vote










        up vote
        4
        down vote









        Instead of going crazy setting the itemsep you could use enumitem package with nosep option.



        documentclass{article}
        usepackage{amssymb}
        usepackage{enumitem}
        renewcommand{labelitemi}{$square$}
        begin{document}
        begin{itemize}[nosep]
        item The current observation $x_t$ is conditionally independent of all
        other observations given the current state $y_t$
        item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
        other states given the current state $y_t$
        item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
        item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
        item None of the above
        end{itemize}
        end{document}


        enter image description here






        share|improve this answer












        Instead of going crazy setting the itemsep you could use enumitem package with nosep option.



        documentclass{article}
        usepackage{amssymb}
        usepackage{enumitem}
        renewcommand{labelitemi}{$square$}
        begin{document}
        begin{itemize}[nosep]
        item The current observation $x_t$ is conditionally independent of all
        other observations given the current state $y_t$
        item[$blacksquare$] The current observation $x_t$ is conditionally independent of all
        other states given the current state $y_t$
        item[$blacksquare$] The current state $y_t$ is conditionally independent of all states given the previous state $y_{t-1}$
        item The current observation $x_t$ is conditionally independent of $x_{t-2}$ given the previous observation $x_{t-1}$.
        item None of the above
        end{itemize}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        CarLaTeX

        27.1k445118




        27.1k445118






















            Chinmay Hejmadi is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            Chinmay Hejmadi is a new contributor. Be nice, and check out our Code of Conduct.













            Chinmay Hejmadi is a new contributor. Be nice, and check out our Code of Conduct.












            Chinmay Hejmadi is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459269%2fsetlength-itemsep-throwing-a-weird-bug%23new-answer', 'question_page');
            }
            );

            Post as a guest




















































































            Popular posts from this blog

            Full-time equivalent

            Bicuculline

            さくらももこ