So I have this list of \entry
macro that takes one argument which is simply a text.
\entry{whatevercoutent}
I want to make use of the second argument as a comma-separated list of words which would be used for filtering entries.
For example,
Some way to declare to only filter "filter1"
\entry{content1}{filter1, filter2, filter3}
\entry{content2}{filter1}
\entry{content3}{filter3}
In the example above, we declared that we would filter filter1
. This would result in only content1 and content2 are rendered.
Is there a way to achieve this?
Thanks in advance.
Best Answer
Here's the idea: each “filter” defines a new sequence where to store entries. At the end you can use those sequences. I also define a global sequence to store all entries.