
On 5 Apr 2025, at 13:38, Joel via ntg-context
wrote: Basically, I need a way for the code to check, "Does standard1 appear in chapter 1?" If yes, put a checkmark. If not, leave blank.
Something like this? (I've kept it simple but more verbose: you could extend \learned instead to make it neater.) \setevalue{standard1}{Students will learn how to navigate the library catalog efficiently.} \setevalue{standard2}{Students will learn how to use a library card to access various services.} \setevalue{standard3}{Students will learn to locate and select appropriate resources across different media.} \setevalue{standard4}{Students will learn to utilize digital databases for academic research.} \setevalue{standard5}{Students will learn to operate self-checkout stations for streamlined borrowing.} \setevalue{standard6}{Students will learn to manage due dates and renew borrowed materials responsibly.} \setevalue{standard7}{Students will learn the fundamentals of the library classification system.} \setevalue{standard8}{Students will learn to evaluate information sources for credibility and relevance.} \setevalue{standard9}{Students will learn to use reference materials to support academic inquiries.} \setevalue{standard10}{Students will learn to adhere to library policies and ethical usage guidelines.} \setevalue{standard11}{Students will learn to reserve study areas and meeting spaces effectively.} \setevalue{standard12}{Students will learn to access and navigate digital library resources.} \setevalue{standard13}{Students will learn to engage with library programs and community events.} \setevalue{standard14}{Students will learn to utilize interlibrary loan services for extended research.} \setevalue{standard15}{Students will learn to apply proper citation methods for materials sourced from the library.} \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=1, pagenumber=yes, indicator=no] % \defineregister[learnedlong][compress=yes] \setupregister[learnedlong][style=sansbold, textstyle=slanted, n=1, pagenumber=yes, indicator=no] % \define[1]\learned{% \learnedshort{#1}% \learnedlong{\getvalue{#1}}% } % \definedataset[TrackLearning] \starttext \startchapter[title={Trees}] \placeregister[learnedlong][way=bychapter, criterium=chapter] \section{Content} \learned{standard1}\setdataset[TrackLearning][1:1][val=Y] \input knuth \stopchapter \startchapter[title={Birds}] \placeregister[learnedlong][way=bychapter, criterium=chapter] \section{Content} \learned{standard8}\setdataset[TrackLearning][2:8][val=Y] \learned{standard16}\setdataset[TrackLearning][2:16][val=Y] \learned{standard6}\setdataset[TrackLearning][2:6][val=Y] \input knuth \stopchapter \startchapter[title={Squirrels}] \placeregister[learnedlong][way=bychapter, criterium=chapter] \section{Content} \learned{standard2}\setdataset[TrackLearning][3:2][val=Y] \learned{standard15}\setdataset[TrackLearning][3:15][val=Y] \learned{standard13}\setdataset[TrackLearning][3:13][val=Y] \learned{standard9}\setdataset[TrackLearning][3:19][val=Y] \input knuth \stopchapter \page \setupTABLE[frame=on, align=middle, option=stretch] \setupTABLE[row][1][style=bold] \setupTABLE[column][1][style=bold] \bTABLE[split=yes] \bTR \bTD \eTD \dostepwiserecurse{1}{7}{1} {\bTD Ch #1 \eTD} \eTR \dostepwiserecurse{1}{16}{1}{% No of standards \bTR \bTD Std #1 \eTD \dostepwiserecurse{1}{7}{1}% No of chapters (Use {8}{15}{1} for the rest in a 2nd table) { \bTD \datasetvariable{TrackLearning}{##1:#1}{val} \eTD } \eTR } \eTABLE \stoptext — Bruce Horrocks Hampshire, UK