You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: