hello:) I would like to know if in a macro we can use the latex grammar to know for example if we are in an environment or in displaymath etc... to adapt the command to this situation ? regards Alain