Counter in front of the glossary name












2















I need to define a customized glossary list based of setglossarystyle{list} such that in front of each entry I get a counter:




  1. symbol 1 blah-blah


  2. symbol 2 blah-blah-blah



...



I assume I have to do something like this:



newglossarystyle{symbols}{%
setglossarystyle{list}% % based on the list style
renewcommand*{glossarypreamble}{vspace{4ex}}%
renewcommand*{glossaryheader}{}%
}


However, this style produces list of symbols and abbreviations WITHOUT counting them and also abbreviations are in bold for some reason.



I have looked at the list of styles unsuccessfully. I haven't found a command that counts the number of symbols in the list, only commands that could the number of times the entry has been used in the text. Any help is appreciated. The whole project can be found here.





Part of it is answered in the comments. The remaining question is how to make the glossary entries not in bold.










share|improve this question




















  • 1





    Try adding the package option entrycounter

    – Nicola Talbot
    Mar 22 at 19:03











  • Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

    – MsTais
    Mar 22 at 19:19











  • @NicolaTalbot Do you happen to know how to make the entry counters not bold?

    – MsTais
    Mar 22 at 19:21
















2















I need to define a customized glossary list based of setglossarystyle{list} such that in front of each entry I get a counter:




  1. symbol 1 blah-blah


  2. symbol 2 blah-blah-blah



...



I assume I have to do something like this:



newglossarystyle{symbols}{%
setglossarystyle{list}% % based on the list style
renewcommand*{glossarypreamble}{vspace{4ex}}%
renewcommand*{glossaryheader}{}%
}


However, this style produces list of symbols and abbreviations WITHOUT counting them and also abbreviations are in bold for some reason.



I have looked at the list of styles unsuccessfully. I haven't found a command that counts the number of symbols in the list, only commands that could the number of times the entry has been used in the text. Any help is appreciated. The whole project can be found here.





Part of it is answered in the comments. The remaining question is how to make the glossary entries not in bold.










share|improve this question




















  • 1





    Try adding the package option entrycounter

    – Nicola Talbot
    Mar 22 at 19:03











  • Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

    – MsTais
    Mar 22 at 19:19











  • @NicolaTalbot Do you happen to know how to make the entry counters not bold?

    – MsTais
    Mar 22 at 19:21














2












2








2








I need to define a customized glossary list based of setglossarystyle{list} such that in front of each entry I get a counter:




  1. symbol 1 blah-blah


  2. symbol 2 blah-blah-blah



...



I assume I have to do something like this:



newglossarystyle{symbols}{%
setglossarystyle{list}% % based on the list style
renewcommand*{glossarypreamble}{vspace{4ex}}%
renewcommand*{glossaryheader}{}%
}


However, this style produces list of symbols and abbreviations WITHOUT counting them and also abbreviations are in bold for some reason.



I have looked at the list of styles unsuccessfully. I haven't found a command that counts the number of symbols in the list, only commands that could the number of times the entry has been used in the text. Any help is appreciated. The whole project can be found here.





Part of it is answered in the comments. The remaining question is how to make the glossary entries not in bold.










share|improve this question
















I need to define a customized glossary list based of setglossarystyle{list} such that in front of each entry I get a counter:




  1. symbol 1 blah-blah


  2. symbol 2 blah-blah-blah



...



I assume I have to do something like this:



newglossarystyle{symbols}{%
setglossarystyle{list}% % based on the list style
renewcommand*{glossarypreamble}{vspace{4ex}}%
renewcommand*{glossaryheader}{}%
}


However, this style produces list of symbols and abbreviations WITHOUT counting them and also abbreviations are in bold for some reason.



I have looked at the list of styles unsuccessfully. I haven't found a command that counts the number of symbols in the list, only commands that could the number of times the entry has been used in the text. Any help is appreciated. The whole project can be found here.





Part of it is answered in the comments. The remaining question is how to make the glossary entries not in bold.







glossaries glossaries-extra






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 19:25







MsTais

















asked Mar 22 at 17:50









MsTaisMsTais

1184




1184








  • 1





    Try adding the package option entrycounter

    – Nicola Talbot
    Mar 22 at 19:03











  • Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

    – MsTais
    Mar 22 at 19:19











  • @NicolaTalbot Do you happen to know how to make the entry counters not bold?

    – MsTais
    Mar 22 at 19:21














  • 1





    Try adding the package option entrycounter

    – Nicola Talbot
    Mar 22 at 19:03











  • Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

    – MsTais
    Mar 22 at 19:19











  • @NicolaTalbot Do you happen to know how to make the entry counters not bold?

    – MsTais
    Mar 22 at 19:21








1




1





Try adding the package option entrycounter

– Nicola Talbot
Mar 22 at 19:03





Try adding the package option entrycounter

– Nicola Talbot
Mar 22 at 19:03













Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

– MsTais
Mar 22 at 19:19





Yeah, thanks! Figured! Also, since I have two lists I need to reset the counter as in here texdoc.net/texmf-dist/doc/latex/glossaries/glossaries-user.pdf

– MsTais
Mar 22 at 19:19













@NicolaTalbot Do you happen to know how to make the entry counters not bold?

– MsTais
Mar 22 at 19:21





@NicolaTalbot Do you happen to know how to make the entry counters not bold?

– MsTais
Mar 22 at 19:21










1 Answer
1






active

oldest

votes


















1














The entrycounter package option defines a counter called glossaryentry that's incremented and displayed at the start of each top-level term in the glossary (in styles that support it).



There are some associated commands:





  • ifglsentrycounter ... else ... fi

    This conditional can be used to test if the entrycounter option was set.


  • theglossaryentry

    Governs how the counter value is displayed (like thepage, thechapter etc).


  • glsentrycounterlabel

    Used to format the counter if the setting is on. This is defined as:



    newcommand*{glsentrycounterlabel}{%
    ifglsentrycounter
    theglossaryentry.space
    fi
    }


    (Originally the conditional wasn't included in the command definition. It was added as part of a bug fix in v4.38 2018-05-10.)



  • glsstepentry{entry-label}

    Used to both increment and label the counter. (The value can be referenced with glsrefentry{entry-label}.)



  • glsentryitem{entry-label}

    Used by the predefined styles to increment and display the counter. This is defined as:



    newcommand*{glsentryitem}[1]{%
    ifglsentrycounter
    glsstepentry{#1}glsentrycounterlabel
    else
    glsresetsubentrycounter
    fi
    }


    If you define your own custom style and you want it to support the entrycounter option you need to include glsentryitem where you want the number to appear if the setting is on.



  • glsresetsubentrycounter

    Resets the counter back to zero.



If the entry counters are appearing in bold then that's because the particular style in use has glsentryitem inside a bold area. In the case of the default list style this is in the optional argument of item. The simplest thing to do is redefine glsentrycounterlabel to explicitly use non-bold. For example:



documentclass{article}

usepackage[entrycounter]{glossaries}

makeglossaries

loadglsentries{example-glossaries-brief}% dummy entries
glsaddall % add all entries for testing

renewcommand*{glsentrycounterlabel}{%
ifglsentrycounter
textmd{theglossaryentry.}space
fi
}

begin{document}
printglossaries
end{document}


image of glossary






share|improve this answer
























  • Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

    – MsTais
    Mar 23 at 15:39






  • 1





    @MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

    – Nicola Talbot
    Mar 23 at 15:46











  • Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

    – MsTais
    Mar 23 at 15:54












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%2f480959%2fcounter-in-front-of-the-glossary-name%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









1














The entrycounter package option defines a counter called glossaryentry that's incremented and displayed at the start of each top-level term in the glossary (in styles that support it).



There are some associated commands:





  • ifglsentrycounter ... else ... fi

    This conditional can be used to test if the entrycounter option was set.


  • theglossaryentry

    Governs how the counter value is displayed (like thepage, thechapter etc).


  • glsentrycounterlabel

    Used to format the counter if the setting is on. This is defined as:



    newcommand*{glsentrycounterlabel}{%
    ifglsentrycounter
    theglossaryentry.space
    fi
    }


    (Originally the conditional wasn't included in the command definition. It was added as part of a bug fix in v4.38 2018-05-10.)



  • glsstepentry{entry-label}

    Used to both increment and label the counter. (The value can be referenced with glsrefentry{entry-label}.)



  • glsentryitem{entry-label}

    Used by the predefined styles to increment and display the counter. This is defined as:



    newcommand*{glsentryitem}[1]{%
    ifglsentrycounter
    glsstepentry{#1}glsentrycounterlabel
    else
    glsresetsubentrycounter
    fi
    }


    If you define your own custom style and you want it to support the entrycounter option you need to include glsentryitem where you want the number to appear if the setting is on.



  • glsresetsubentrycounter

    Resets the counter back to zero.



If the entry counters are appearing in bold then that's because the particular style in use has glsentryitem inside a bold area. In the case of the default list style this is in the optional argument of item. The simplest thing to do is redefine glsentrycounterlabel to explicitly use non-bold. For example:



documentclass{article}

usepackage[entrycounter]{glossaries}

makeglossaries

loadglsentries{example-glossaries-brief}% dummy entries
glsaddall % add all entries for testing

renewcommand*{glsentrycounterlabel}{%
ifglsentrycounter
textmd{theglossaryentry.}space
fi
}

begin{document}
printglossaries
end{document}


image of glossary






share|improve this answer
























  • Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

    – MsTais
    Mar 23 at 15:39






  • 1





    @MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

    – Nicola Talbot
    Mar 23 at 15:46











  • Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

    – MsTais
    Mar 23 at 15:54
















1














The entrycounter package option defines a counter called glossaryentry that's incremented and displayed at the start of each top-level term in the glossary (in styles that support it).



There are some associated commands:





  • ifglsentrycounter ... else ... fi

    This conditional can be used to test if the entrycounter option was set.


  • theglossaryentry

    Governs how the counter value is displayed (like thepage, thechapter etc).


  • glsentrycounterlabel

    Used to format the counter if the setting is on. This is defined as:



    newcommand*{glsentrycounterlabel}{%
    ifglsentrycounter
    theglossaryentry.space
    fi
    }


    (Originally the conditional wasn't included in the command definition. It was added as part of a bug fix in v4.38 2018-05-10.)



  • glsstepentry{entry-label}

    Used to both increment and label the counter. (The value can be referenced with glsrefentry{entry-label}.)



  • glsentryitem{entry-label}

    Used by the predefined styles to increment and display the counter. This is defined as:



    newcommand*{glsentryitem}[1]{%
    ifglsentrycounter
    glsstepentry{#1}glsentrycounterlabel
    else
    glsresetsubentrycounter
    fi
    }


    If you define your own custom style and you want it to support the entrycounter option you need to include glsentryitem where you want the number to appear if the setting is on.



  • glsresetsubentrycounter

    Resets the counter back to zero.



If the entry counters are appearing in bold then that's because the particular style in use has glsentryitem inside a bold area. In the case of the default list style this is in the optional argument of item. The simplest thing to do is redefine glsentrycounterlabel to explicitly use non-bold. For example:



documentclass{article}

usepackage[entrycounter]{glossaries}

makeglossaries

loadglsentries{example-glossaries-brief}% dummy entries
glsaddall % add all entries for testing

renewcommand*{glsentrycounterlabel}{%
ifglsentrycounter
textmd{theglossaryentry.}space
fi
}

begin{document}
printglossaries
end{document}


image of glossary






share|improve this answer
























  • Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

    – MsTais
    Mar 23 at 15:39






  • 1





    @MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

    – Nicola Talbot
    Mar 23 at 15:46











  • Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

    – MsTais
    Mar 23 at 15:54














1












1








1







The entrycounter package option defines a counter called glossaryentry that's incremented and displayed at the start of each top-level term in the glossary (in styles that support it).



There are some associated commands:





  • ifglsentrycounter ... else ... fi

    This conditional can be used to test if the entrycounter option was set.


  • theglossaryentry

    Governs how the counter value is displayed (like thepage, thechapter etc).


  • glsentrycounterlabel

    Used to format the counter if the setting is on. This is defined as:



    newcommand*{glsentrycounterlabel}{%
    ifglsentrycounter
    theglossaryentry.space
    fi
    }


    (Originally the conditional wasn't included in the command definition. It was added as part of a bug fix in v4.38 2018-05-10.)



  • glsstepentry{entry-label}

    Used to both increment and label the counter. (The value can be referenced with glsrefentry{entry-label}.)



  • glsentryitem{entry-label}

    Used by the predefined styles to increment and display the counter. This is defined as:



    newcommand*{glsentryitem}[1]{%
    ifglsentrycounter
    glsstepentry{#1}glsentrycounterlabel
    else
    glsresetsubentrycounter
    fi
    }


    If you define your own custom style and you want it to support the entrycounter option you need to include glsentryitem where you want the number to appear if the setting is on.



  • glsresetsubentrycounter

    Resets the counter back to zero.



If the entry counters are appearing in bold then that's because the particular style in use has glsentryitem inside a bold area. In the case of the default list style this is in the optional argument of item. The simplest thing to do is redefine glsentrycounterlabel to explicitly use non-bold. For example:



documentclass{article}

usepackage[entrycounter]{glossaries}

makeglossaries

loadglsentries{example-glossaries-brief}% dummy entries
glsaddall % add all entries for testing

renewcommand*{glsentrycounterlabel}{%
ifglsentrycounter
textmd{theglossaryentry.}space
fi
}

begin{document}
printglossaries
end{document}


image of glossary






share|improve this answer













The entrycounter package option defines a counter called glossaryentry that's incremented and displayed at the start of each top-level term in the glossary (in styles that support it).



There are some associated commands:





  • ifglsentrycounter ... else ... fi

    This conditional can be used to test if the entrycounter option was set.


  • theglossaryentry

    Governs how the counter value is displayed (like thepage, thechapter etc).


  • glsentrycounterlabel

    Used to format the counter if the setting is on. This is defined as:



    newcommand*{glsentrycounterlabel}{%
    ifglsentrycounter
    theglossaryentry.space
    fi
    }


    (Originally the conditional wasn't included in the command definition. It was added as part of a bug fix in v4.38 2018-05-10.)



  • glsstepentry{entry-label}

    Used to both increment and label the counter. (The value can be referenced with glsrefentry{entry-label}.)



  • glsentryitem{entry-label}

    Used by the predefined styles to increment and display the counter. This is defined as:



    newcommand*{glsentryitem}[1]{%
    ifglsentrycounter
    glsstepentry{#1}glsentrycounterlabel
    else
    glsresetsubentrycounter
    fi
    }


    If you define your own custom style and you want it to support the entrycounter option you need to include glsentryitem where you want the number to appear if the setting is on.



  • glsresetsubentrycounter

    Resets the counter back to zero.



If the entry counters are appearing in bold then that's because the particular style in use has glsentryitem inside a bold area. In the case of the default list style this is in the optional argument of item. The simplest thing to do is redefine glsentrycounterlabel to explicitly use non-bold. For example:



documentclass{article}

usepackage[entrycounter]{glossaries}

makeglossaries

loadglsentries{example-glossaries-brief}% dummy entries
glsaddall % add all entries for testing

renewcommand*{glsentrycounterlabel}{%
ifglsentrycounter
textmd{theglossaryentry.}space
fi
}

begin{document}
printglossaries
end{document}


image of glossary







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 23 at 10:45









Nicola TalbotNicola Talbot

34.6k259106




34.6k259106













  • Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

    – MsTais
    Mar 23 at 15:39






  • 1





    @MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

    – Nicola Talbot
    Mar 23 at 15:46











  • Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

    – MsTais
    Mar 23 at 15:54



















  • Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

    – MsTais
    Mar 23 at 15:39






  • 1





    @MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

    – Nicola Talbot
    Mar 23 at 15:46











  • Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

    – MsTais
    Mar 23 at 15:54

















Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

– MsTais
Mar 23 at 15:39





Thanks a lot! It non-bolded the numbers, but the entries themselves are still bolded. How do I unbold them? It has to do with the newglossarystyle, probably, but I can't find the right command.

– MsTais
Mar 23 at 15:39




1




1





@MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

– Nicola Talbot
Mar 23 at 15:46





@MsTais The name is encapsulated with glsnamefont so you can redefine that to cancel the effect of the bold created by the style (in this case it's because the list style puts the name inside the optional argument of item).

– Nicola Talbot
Mar 23 at 15:46













Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

– MsTais
Mar 23 at 15:54





Yeii! "renewcommand*{glsnamefont}[1]{textmd{#1}space}" worked for me! Thanks a lot!

– MsTais
Mar 23 at 15:54


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480959%2fcounter-in-front-of-the-glossary-name%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?