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
glossaries
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.
|
show 2 more comments
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
glossaries
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 pagemaketerms
is on) will appear in the location list for every entry. Any use ofgls
in the document then adds to the location list. Thenglsaddallunused
(inmakeind
) 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 allglsaddall
andglsaddallunused
, 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
|
show 2 more comments
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
glossaries
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
glossaries
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 pagemaketerms
is on) will appear in the location list for every entry. Any use ofgls
in the document then adds to the location list. Thenglsaddallunused
(inmakeind
) 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 allglsaddall
andglsaddallunused
, 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
|
show 2 more comments
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 pagemaketerms
is on) will appear in the location list for every entry. Any use ofgls
in the document then adds to the location list. Thenglsaddallunused
(inmakeind
) 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 allglsaddall
andglsaddallunused
, 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
|
show 2 more comments
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 26 at 22:15
Tim
62
62
add a comment |
add a comment |
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%2f412334%2fmultiples-of-the-same-entry-with-multiple-glossaries%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 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 pagemaketerms
is on) will appear in the location list for every entry. Any use ofgls
in the document then adds to the location list. Thenglsaddallunused
(inmakeind
) 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
andglsaddallunused
, 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