Having trouble using output of a simple newcommand as input to another

I’m trying to do something [that seems it should be] very simple but that doesn’t seem to work, grateful for guidance! In brief, I want to define some lists of tags to pass to the usetag command from the tagging package (https://ctan.math.illinois.edu/macros/latex/contrib/tagging/tagging.pdf). basically replacing:

usepackage{tagging}

usetag{topic 1, topic 2, topic 3, etc.}

with

usepackage{tagging}

newcommand{alltaggedtopics}{topic 1, topic 2, topic 3, etc.}

usetag{alltaggedtopics}

with the intention of then setting more groups of tags and having something like

usepackage{tagging}

newcommand{alltaggedtopics}{topic 1, topic 2, topic 3, etc.}

newcommand{alltaggedauthors}{author 1, author 2, author 3, etc.}

usetag{alltaggedtopics, alltaggedauthors} 

However, doing it via the newcommmands results in usetag being set to nothing. I’m sure that I’m making a very fundamental mistake, grateful for help identifying what it is.

Chris

Leave a Reply

Your email address will not be published. Required fields are marked *