Because \newcolumntype just stores the second argument as string in a map and parses it when needed again and again, you can use the newly defined coumntype inside of itself, creating infinite recursion.
Example:
a hacky workarround would be to just parse the second argument in the newcolumntype macro using Formula(tp, args[2]);, but a better method might be storing the now parsed formula in the map instead of the args[2] and reusing this wherever necessary.
Because
\newcolumntype
just stores the second argument as string in a map and parses it when needed again and again, you can use the newly defined coumntype inside of itself, creating infinite recursion. Example:a hacky workarround would be to just parse the second argument in the
newcolumntype
macro usingFormula(tp, args[2]);
, but a better method might be storing the now parsed formula in the map instead of the args[2] and reusing this wherever necessary.