I have a class in which an option is to state a code and the resulting programme of study is represented at various points throughout a document. The option also changes a number of other blocks of text related to each programme. For example:
\DeclareOption{AK3696}{\def\degreetitle{Bachelor of Arts (Honours)}}
However, there are 156 codes and while having 156 options declared works, it really grates. I would prefer to have all the codes and programme names in a separate file that can be easily updated (these may change twice each year with old ones deleted and new ones added).
Is there a way, using \DeclareOption, to define the programme codes and programme names in an array of structured objects and using the programme code as a pointer?
The array should not include the class code, for example in the form below:
"AK3696","Bachelor of Arts (Honours)"
"AK3656","Bachelor of Applied Science (Honours)"
"AK3670","Bachelor of Art and Design (Honours)"
"AK3712","Bachelor of Business with Honours"
"AK3687","Bachelor of Computer and Information Sciences (Honours)"
.csv?