See this for an example of how replacing * with \cdot would work.
I want to do the same type of thing but only within an environment. For example:
\newenvironment{starmultiply}
{
% Something here...
}
{
% Undo previous effect
}
Another good usage would be to replace < and > with \langle
and \rangle
.
I don't always want to do this throughout the document, so DeclareMathSymbol
can't be used (it is preamble only). Also,
\newenvironment{starmultiply}
{
\mathcode`\*="8000 %
{\catcode`\*=\active\gdef*{\cdot}}
}
{
% Undo previous effect
}
Doesn't seem to work. I get "Undefined control sequence" errors. Is there any solution which isn't super gross?