latex plots: Change newcommand to providecommand to prevent error when it is already defined
Fix issue @daniel-williams mentioned in #482 (closed) where latex command \newcommand
produces an error if \mathdefault
is already defined in the latex environment.