I'm trying to center all figures, but renewcommand does not work the way I expected.
\renewcommand{\begin{figure}}{\begin{figure}\centering}
This code has an error. Why doesn't it work and how can I make it work?
I'm trying to center all figures, but renewcommand does not work the way I expected.
\renewcommand{\begin{figure}}{\begin{figure}\centering}
This code has an error. Why doesn't it work and how can I make it work?
\renewcommandhas to be a single token, the command name, not a fragment of code like\begin{figure}(which is 9 tokens) – David Carlisle Feb 01 '20 at 21:03