Added convenience macros to add types
This commit is contained in:
@ -472,8 +472,7 @@
|
||||
|
||||
\def\crfnm@newListFrom[#1][#2] -> #3{%
|
||||
% #1 is either a list or a reference.
|
||||
% #2 is a reference.
|
||||
% #2 is appended to #1.
|
||||
% #2 is the reference appended to #1.
|
||||
% #3 is the control sequence which the resulting list will be bound to.
|
||||
\crfnm@ifIsList[#1]{%
|
||||
\edef#3{#1{#2}}%
|
||||
@ -481,6 +480,12 @@
|
||||
\edef#3{{#1}{#2}}%
|
||||
}%
|
||||
}
|
||||
\def\crfnm@addToList[#1][#2]{\crfnm@newListFrom[#1][#2] -> #1}
|
||||
\def\crfnm@declareType[#1][#2]{%
|
||||
% #1 is "simple" or "double", #2 is the type
|
||||
\expandafter\crfnm@addToList\expandafter[\csname crfnm@#1RefTypes\endcsname][#2]%
|
||||
\crfnm@addToList[\crfnm@supportedTypes][#2]%
|
||||
}
|
||||
|
||||
\def\crfnm@replaceFirstInList[#1]#2{%
|
||||
% #1 is a token, #2 is a list of tokens
|
||||
|
Reference in New Issue
Block a user