I have written a macro to denote either the Fourier transformation (curly F by itself) or the Fourier transform of a function (curly F followed by a function and enclosed in \left( and \right) ). It does so by testing if the argument is equal to void or not:
give the expected results.
I wanted to apply \fourier twice to a function and therefore wrote
However, I'm getting a
! Missing \endcsname inserted. error. How should I modify my macro so that it allows nesting? I'm guessing it's because of the