Reduce line spacing in nomenclature












4














I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep} command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?



Attached is an example code and a snapshot of the output:



documentclass[authoryear, preprint]{elsarticle} 

usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}

begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}


Thanks a lot for any hints!



Christian
enter image description here










share|improve this question






















  • I think, the spacings is actually controlled in the nomencl.ist file
    – Christian Hupfer
    Dec 14 '15 at 13:59










  • @ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
    – Christian
    Dec 14 '15 at 16:50










  • I'll try to do later on
    – Christian Hupfer
    Dec 14 '15 at 19:13










  • @ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
    – Christian
    Dec 16 '15 at 8:26
















4














I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep} command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?



Attached is an example code and a snapshot of the output:



documentclass[authoryear, preprint]{elsarticle} 

usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}

begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}


Thanks a lot for any hints!



Christian
enter image description here










share|improve this question






















  • I think, the spacings is actually controlled in the nomencl.ist file
    – Christian Hupfer
    Dec 14 '15 at 13:59










  • @ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
    – Christian
    Dec 14 '15 at 16:50










  • I'll try to do later on
    – Christian Hupfer
    Dec 14 '15 at 19:13










  • @ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
    – Christian
    Dec 16 '15 at 8:26














4












4








4


0





I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep} command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?



Attached is an example code and a snapshot of the output:



documentclass[authoryear, preprint]{elsarticle} 

usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}

begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}


Thanks a lot for any hints!



Christian
enter image description here










share|improve this question













I am creating a nomenclature and would like to reduce line spacing. If I use the approach found online inserting the setlength{nomitemstep}{-parsep} command, all line skips are removed including the ones before and after the sub-section headings of the nomenclature.
Is there a way of reducing the line space only for the individual items, however not for the headers?



Attached is an example code and a snapshot of the output:



documentclass[authoryear, preprint]{elsarticle} 

usepackage{nomencl}
makenomenclature
renewcommand{nomgroup}[1]{%
ifthenelse{equal{#1}{A}}{item[textbf{Greek Symbols}]}{%
ifthenelse{equal{#1}{B}}{item[textbf{Other Variables}]}{}}}
setlength{nomitemsep}{-parsep}
RequirePackage{ifthen}

begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}


Thanks a lot for any hints!



Christian
enter image description here







line-spacing nomenclature






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 14 '15 at 13:30









Christian

5917




5917












  • I think, the spacings is actually controlled in the nomencl.ist file
    – Christian Hupfer
    Dec 14 '15 at 13:59










  • @ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
    – Christian
    Dec 14 '15 at 16:50










  • I'll try to do later on
    – Christian Hupfer
    Dec 14 '15 at 19:13










  • @ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
    – Christian
    Dec 16 '15 at 8:26


















  • I think, the spacings is actually controlled in the nomencl.ist file
    – Christian Hupfer
    Dec 14 '15 at 13:59










  • @ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
    – Christian
    Dec 14 '15 at 16:50










  • I'll try to do later on
    – Christian Hupfer
    Dec 14 '15 at 19:13










  • @ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
    – Christian
    Dec 16 '15 at 8:26
















I think, the spacings is actually controlled in the nomencl.ist file
– Christian Hupfer
Dec 14 '15 at 13:59




I think, the spacings is actually controlled in the nomencl.ist file
– Christian Hupfer
Dec 14 '15 at 13:59












@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50




@ChristianHupfer Thanks for the reply. As I am fairly new to LaTeX, could you let me know how I can access and edit that file in a way that solves my question above?
– Christian
Dec 14 '15 at 16:50












I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13




I'll try to do later on
– Christian Hupfer
Dec 14 '15 at 19:13












@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26




@ChristianHupfer Hi Christian, I would appreciate if you could give me a hint on how to edit the .ist file to achieve the desired effect. Thanks so much
– Christian
Dec 16 '15 at 8:26










2 Answers
2






active

oldest

votes


















2














Here's a small bypass solution: Restore the noitemsep value temporarily in a nomgroup and use the newer value afterwards.



documentclass[authoryear, preprint]{elsarticle} 
usepackage{ifthen}

usepackage{nomencl}
usepackage{xpatch}



newlength{nomitemorigsep}
setlength{nomitemorigsep}{nomitemsep}
setlength{nomitemsep}{-parsep}


makenomenclature
renewcommand{nomgroup}[1]{%
itemsepnomitemorigsep%
ifthenelse{%
equal{#1}{A}%
}{%
item[textbf{Greek Symbols}]%

}{%
ifthenelse{equal{#1}{B}}{%
item[textbf{Other Variables}]%

}{}%
}%
itemsepnomitemsep% Restore spacing
}


begin{document}
This is my text document.
nomenclature[a]{$sigma$}{Variable explanation}
nomenclature[a]{$alpha$}{Variable explanation}
nomenclature[a]{$beta$}{Variable explanation}
nomenclature[b]{$A$}{Variable explanation}
nomenclature[b]{$B$}{Variable explanation}
nomenclature[b]{$C$}{Variable explanation}
nomenclature[b]{$D$}{Variable explanation}
printnomenclature[0.9in]
end{document}





share|improve this answer





















  • how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
    – Nick
    Nov 20 at 7:17



















0














I have been trying to use nomenclature in texstudio elsearticle.
Can you help me with settings to get it done.
No coding works in my case.. lots of time tried.





share








New contributor




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


















    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%2f283019%2freduce-line-spacing-in-nomenclature%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Here's a small bypass solution: Restore the noitemsep value temporarily in a nomgroup and use the newer value afterwards.



    documentclass[authoryear, preprint]{elsarticle} 
    usepackage{ifthen}

    usepackage{nomencl}
    usepackage{xpatch}



    newlength{nomitemorigsep}
    setlength{nomitemorigsep}{nomitemsep}
    setlength{nomitemsep}{-parsep}


    makenomenclature
    renewcommand{nomgroup}[1]{%
    itemsepnomitemorigsep%
    ifthenelse{%
    equal{#1}{A}%
    }{%
    item[textbf{Greek Symbols}]%

    }{%
    ifthenelse{equal{#1}{B}}{%
    item[textbf{Other Variables}]%

    }{}%
    }%
    itemsepnomitemsep% Restore spacing
    }


    begin{document}
    This is my text document.
    nomenclature[a]{$sigma$}{Variable explanation}
    nomenclature[a]{$alpha$}{Variable explanation}
    nomenclature[a]{$beta$}{Variable explanation}
    nomenclature[b]{$A$}{Variable explanation}
    nomenclature[b]{$B$}{Variable explanation}
    nomenclature[b]{$C$}{Variable explanation}
    nomenclature[b]{$D$}{Variable explanation}
    printnomenclature[0.9in]
    end{document}





    share|improve this answer





















    • how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
      – Nick
      Nov 20 at 7:17
















    2














    Here's a small bypass solution: Restore the noitemsep value temporarily in a nomgroup and use the newer value afterwards.



    documentclass[authoryear, preprint]{elsarticle} 
    usepackage{ifthen}

    usepackage{nomencl}
    usepackage{xpatch}



    newlength{nomitemorigsep}
    setlength{nomitemorigsep}{nomitemsep}
    setlength{nomitemsep}{-parsep}


    makenomenclature
    renewcommand{nomgroup}[1]{%
    itemsepnomitemorigsep%
    ifthenelse{%
    equal{#1}{A}%
    }{%
    item[textbf{Greek Symbols}]%

    }{%
    ifthenelse{equal{#1}{B}}{%
    item[textbf{Other Variables}]%

    }{}%
    }%
    itemsepnomitemsep% Restore spacing
    }


    begin{document}
    This is my text document.
    nomenclature[a]{$sigma$}{Variable explanation}
    nomenclature[a]{$alpha$}{Variable explanation}
    nomenclature[a]{$beta$}{Variable explanation}
    nomenclature[b]{$A$}{Variable explanation}
    nomenclature[b]{$B$}{Variable explanation}
    nomenclature[b]{$C$}{Variable explanation}
    nomenclature[b]{$D$}{Variable explanation}
    printnomenclature[0.9in]
    end{document}





    share|improve this answer





















    • how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
      – Nick
      Nov 20 at 7:17














    2












    2








    2






    Here's a small bypass solution: Restore the noitemsep value temporarily in a nomgroup and use the newer value afterwards.



    documentclass[authoryear, preprint]{elsarticle} 
    usepackage{ifthen}

    usepackage{nomencl}
    usepackage{xpatch}



    newlength{nomitemorigsep}
    setlength{nomitemorigsep}{nomitemsep}
    setlength{nomitemsep}{-parsep}


    makenomenclature
    renewcommand{nomgroup}[1]{%
    itemsepnomitemorigsep%
    ifthenelse{%
    equal{#1}{A}%
    }{%
    item[textbf{Greek Symbols}]%

    }{%
    ifthenelse{equal{#1}{B}}{%
    item[textbf{Other Variables}]%

    }{}%
    }%
    itemsepnomitemsep% Restore spacing
    }


    begin{document}
    This is my text document.
    nomenclature[a]{$sigma$}{Variable explanation}
    nomenclature[a]{$alpha$}{Variable explanation}
    nomenclature[a]{$beta$}{Variable explanation}
    nomenclature[b]{$A$}{Variable explanation}
    nomenclature[b]{$B$}{Variable explanation}
    nomenclature[b]{$C$}{Variable explanation}
    nomenclature[b]{$D$}{Variable explanation}
    printnomenclature[0.9in]
    end{document}





    share|improve this answer












    Here's a small bypass solution: Restore the noitemsep value temporarily in a nomgroup and use the newer value afterwards.



    documentclass[authoryear, preprint]{elsarticle} 
    usepackage{ifthen}

    usepackage{nomencl}
    usepackage{xpatch}



    newlength{nomitemorigsep}
    setlength{nomitemorigsep}{nomitemsep}
    setlength{nomitemsep}{-parsep}


    makenomenclature
    renewcommand{nomgroup}[1]{%
    itemsepnomitemorigsep%
    ifthenelse{%
    equal{#1}{A}%
    }{%
    item[textbf{Greek Symbols}]%

    }{%
    ifthenelse{equal{#1}{B}}{%
    item[textbf{Other Variables}]%

    }{}%
    }%
    itemsepnomitemsep% Restore spacing
    }


    begin{document}
    This is my text document.
    nomenclature[a]{$sigma$}{Variable explanation}
    nomenclature[a]{$alpha$}{Variable explanation}
    nomenclature[a]{$beta$}{Variable explanation}
    nomenclature[b]{$A$}{Variable explanation}
    nomenclature[b]{$B$}{Variable explanation}
    nomenclature[b]{$C$}{Variable explanation}
    nomenclature[b]{$D$}{Variable explanation}
    printnomenclature[0.9in]
    end{document}






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 17 '15 at 14:42









    Christian Hupfer

    147k14191382




    147k14191382












    • how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
      – Nick
      Nov 20 at 7:17


















    • how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
      – Nick
      Nov 20 at 7:17
















    how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
    – Nick
    Nov 20 at 7:17




    how to add some spacing say 0.5 nomitemorigsep bewteen Other Variables and A? Thanks.
    – Nick
    Nov 20 at 7:17











    0














    I have been trying to use nomenclature in texstudio elsearticle.
    Can you help me with settings to get it done.
    No coding works in my case.. lots of time tried.





    share








    New contributor




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























      0














      I have been trying to use nomenclature in texstudio elsearticle.
      Can you help me with settings to get it done.
      No coding works in my case.. lots of time tried.





      share








      New contributor




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





















        0












        0








        0






        I have been trying to use nomenclature in texstudio elsearticle.
        Can you help me with settings to get it done.
        No coding works in my case.. lots of time tried.





        share








        New contributor




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









        I have been trying to use nomenclature in texstudio elsearticle.
        Can you help me with settings to get it done.
        No coding works in my case.. lots of time tried.






        share








        New contributor




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








        share


        share






        New contributor




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









        answered 4 mins ago









        Sridhar Sahoo

        1




        1




        New contributor




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





        New contributor





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






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






























            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.





            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f283019%2freduce-line-spacing-in-nomenclature%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

            Contact image not getting when fetch all contact list from iPhone by CNContact

            count number of partitions of a set with n elements into k subsets

            A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks