Multiples of the Same Entry with Multiple Glossaries











up vote
1
down vote

favorite












So I'm putting together my thesis and I'm fairly new at Latex. I'm trying to compile a glossary (labelled as List of Terms) and list of acronyms in the front, and an index in the back. But the index keeps tagging the page number for the list of acronyms and printing certain entries twice.



MWE:



documentclass[11pt,lot,lof]{report}
usepackage[letterpaper, portrait, margin=1in]{geometry}

usepackage[nopostdot,nogroupskip,acronyms,toc]{glossaries} %Make glossaries

newglossary[tlg]{index}{tld}{tdn}{Index}

makeglossaries

newcommand*{maketerms}{
setglossarystyle{index}
printglossary[title=LIST OF TERMS, toctitle=List of Terms,nonumberlist]
glsaddall
}

newcommand*{makeloa}{
renewcommand*{glossarypreamble}{vspace{-baselineskip}}
setglossarystyle{alttree}
glssetwidest{YYYYYYY}
printglossary[type=acronymtype,title=LIST OF ABBREVIATIONS, toctitle=List of Abbreviations,nonumberlist]
}

newcommand*{makeind}{
setglossarystyle{index}
printglossary[type=index,title=INDEX,toctitle=Index]
glsaddallunused
}

input{ch-appendicies/Terms.tex}
input{ch-appendicies/Index.tex}

begin{document}
bodyspacing
maketermsmakeloa
makeind %Makes index
end{document}


The Terms.tex file has my glossary and list of acronyms entries










share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
    – Phelype Oleinik
    Jan 26 at 21:13










  • I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
    – Tim
    Jan 26 at 21:21










  • It is still a fragment only
    – Christian Hupfer
    Jan 26 at 21:33










  • glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
    – Nicola Talbot
    Jan 26 at 21:51












  • I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
    – Tim
    Jan 26 at 21:56

















up vote
1
down vote

favorite












So I'm putting together my thesis and I'm fairly new at Latex. I'm trying to compile a glossary (labelled as List of Terms) and list of acronyms in the front, and an index in the back. But the index keeps tagging the page number for the list of acronyms and printing certain entries twice.



MWE:



documentclass[11pt,lot,lof]{report}
usepackage[letterpaper, portrait, margin=1in]{geometry}

usepackage[nopostdot,nogroupskip,acronyms,toc]{glossaries} %Make glossaries

newglossary[tlg]{index}{tld}{tdn}{Index}

makeglossaries

newcommand*{maketerms}{
setglossarystyle{index}
printglossary[title=LIST OF TERMS, toctitle=List of Terms,nonumberlist]
glsaddall
}

newcommand*{makeloa}{
renewcommand*{glossarypreamble}{vspace{-baselineskip}}
setglossarystyle{alttree}
glssetwidest{YYYYYYY}
printglossary[type=acronymtype,title=LIST OF ABBREVIATIONS, toctitle=List of Abbreviations,nonumberlist]
}

newcommand*{makeind}{
setglossarystyle{index}
printglossary[type=index,title=INDEX,toctitle=Index]
glsaddallunused
}

input{ch-appendicies/Terms.tex}
input{ch-appendicies/Index.tex}

begin{document}
bodyspacing
maketermsmakeloa
makeind %Makes index
end{document}


The Terms.tex file has my glossary and list of acronyms entries










share|improve this question
















bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
    – Phelype Oleinik
    Jan 26 at 21:13










  • I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
    – Tim
    Jan 26 at 21:21










  • It is still a fragment only
    – Christian Hupfer
    Jan 26 at 21:33










  • glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
    – Nicola Talbot
    Jan 26 at 21:51












  • I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
    – Tim
    Jan 26 at 21:56















up vote
1
down vote

favorite









up vote
1
down vote

favorite











So I'm putting together my thesis and I'm fairly new at Latex. I'm trying to compile a glossary (labelled as List of Terms) and list of acronyms in the front, and an index in the back. But the index keeps tagging the page number for the list of acronyms and printing certain entries twice.



MWE:



documentclass[11pt,lot,lof]{report}
usepackage[letterpaper, portrait, margin=1in]{geometry}

usepackage[nopostdot,nogroupskip,acronyms,toc]{glossaries} %Make glossaries

newglossary[tlg]{index}{tld}{tdn}{Index}

makeglossaries

newcommand*{maketerms}{
setglossarystyle{index}
printglossary[title=LIST OF TERMS, toctitle=List of Terms,nonumberlist]
glsaddall
}

newcommand*{makeloa}{
renewcommand*{glossarypreamble}{vspace{-baselineskip}}
setglossarystyle{alttree}
glssetwidest{YYYYYYY}
printglossary[type=acronymtype,title=LIST OF ABBREVIATIONS, toctitle=List of Abbreviations,nonumberlist]
}

newcommand*{makeind}{
setglossarystyle{index}
printglossary[type=index,title=INDEX,toctitle=Index]
glsaddallunused
}

input{ch-appendicies/Terms.tex}
input{ch-appendicies/Index.tex}

begin{document}
bodyspacing
maketermsmakeloa
makeind %Makes index
end{document}


The Terms.tex file has my glossary and list of acronyms entries










share|improve this question















So I'm putting together my thesis and I'm fairly new at Latex. I'm trying to compile a glossary (labelled as List of Terms) and list of acronyms in the front, and an index in the back. But the index keeps tagging the page number for the list of acronyms and printing certain entries twice.



MWE:



documentclass[11pt,lot,lof]{report}
usepackage[letterpaper, portrait, margin=1in]{geometry}

usepackage[nopostdot,nogroupskip,acronyms,toc]{glossaries} %Make glossaries

newglossary[tlg]{index}{tld}{tdn}{Index}

makeglossaries

newcommand*{maketerms}{
setglossarystyle{index}
printglossary[title=LIST OF TERMS, toctitle=List of Terms,nonumberlist]
glsaddall
}

newcommand*{makeloa}{
renewcommand*{glossarypreamble}{vspace{-baselineskip}}
setglossarystyle{alttree}
glssetwidest{YYYYYYY}
printglossary[type=acronymtype,title=LIST OF ABBREVIATIONS, toctitle=List of Abbreviations,nonumberlist]
}

newcommand*{makeind}{
setglossarystyle{index}
printglossary[type=index,title=INDEX,toctitle=Index]
glsaddallunused
}

input{ch-appendicies/Terms.tex}
input{ch-appendicies/Index.tex}

begin{document}
bodyspacing
maketermsmakeloa
makeind %Makes index
end{document}


The Terms.tex file has my glossary and list of acronyms entries







glossaries






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 26 at 21:20

























asked Jan 26 at 21:01









Tim

62




62





bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 9 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
    – Phelype Oleinik
    Jan 26 at 21:13










  • I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
    – Tim
    Jan 26 at 21:21










  • It is still a fragment only
    – Christian Hupfer
    Jan 26 at 21:33










  • glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
    – Nicola Talbot
    Jan 26 at 21:51












  • I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
    – Tim
    Jan 26 at 21:56




















  • Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
    – Phelype Oleinik
    Jan 26 at 21:13










  • I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
    – Tim
    Jan 26 at 21:21










  • It is still a fragment only
    – Christian Hupfer
    Jan 26 at 21:33










  • glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
    – Nicola Talbot
    Jan 26 at 21:51












  • I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
    – Tim
    Jan 26 at 21:56


















Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
– Phelype Oleinik
Jan 26 at 21:13




Welcome to TeX.SX! Please don't post code fragments. Instead, put your fragments into a complete compilable document that shows the problem.
– Phelype Oleinik
Jan 26 at 21:13












I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
– Tim
Jan 26 at 21:21




I'm not sure if that's better. I'm trying not to add the whole program because that would be really long. But I added the document part so I think it should run.
– Tim
Jan 26 at 21:21












It is still a fragment only
– Christian Hupfer
Jan 26 at 21:33




It is still a fragment only
– Christian Hupfer
Jan 26 at 21:33












glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
– Nicola Talbot
Jan 26 at 21:51






glsaddall indexes every defined entry, so page 1 (or whatever page maketerms is on) will appear in the location list for every entry. Any use of gls in the document then adds to the location list. Then glsaddallunused(in makeind) iterates over every defined entry and indexes any entries that haven't been marked as used, which is redundant. If you haven't unset any entries this is a pointless loop and if you have, you end up with hidden locations added to the location lists.
– Nicola Talbot
Jan 26 at 21:51














I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
– Tim
Jan 26 at 21:56






I thought that at first, but then when I remove all glsaddall and glsaddallunused, the index compiles fine, but the other two glossaries don't compile at all. Edit: Rather, the other two glossaries compile as a single blank page.
– Tim
Jan 26 at 21:56












1 Answer
1






active

oldest

votes

















up vote
0
down vote













I figured it out. The issue was that I wasn't actually using gls to tag my terms in the text, I was just using gls{tld:<label>} to input them in the index, so the glossary was compiling as empty unless I used glsaddall, which created all the other issues.



Thank you @Nicola Talbot, your comments helped me hone in on the issue. I'll try to format my questions better next time.






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


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f412334%2fmultiples-of-the-same-entry-with-multiple-glossaries%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








    up vote
    0
    down vote













    I figured it out. The issue was that I wasn't actually using gls to tag my terms in the text, I was just using gls{tld:<label>} to input them in the index, so the glossary was compiling as empty unless I used glsaddall, which created all the other issues.



    Thank you @Nicola Talbot, your comments helped me hone in on the issue. I'll try to format my questions better next time.






    share|improve this answer

























      up vote
      0
      down vote













      I figured it out. The issue was that I wasn't actually using gls to tag my terms in the text, I was just using gls{tld:<label>} to input them in the index, so the glossary was compiling as empty unless I used glsaddall, which created all the other issues.



      Thank you @Nicola Talbot, your comments helped me hone in on the issue. I'll try to format my questions better next time.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I figured it out. The issue was that I wasn't actually using gls to tag my terms in the text, I was just using gls{tld:<label>} to input them in the index, so the glossary was compiling as empty unless I used glsaddall, which created all the other issues.



        Thank you @Nicola Talbot, your comments helped me hone in on the issue. I'll try to format my questions better next time.






        share|improve this answer












        I figured it out. The issue was that I wasn't actually using gls to tag my terms in the text, I was just using gls{tld:<label>} to input them in the index, so the glossary was compiling as empty unless I used glsaddall, which created all the other issues.



        Thank you @Nicola Talbot, your comments helped me hone in on the issue. I'll try to format my questions better next time.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 26 at 22:15









        Tim

        62




        62






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f412334%2fmultiples-of-the-same-entry-with-multiple-glossaries%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