1

Currently all of my figures look like this:

\begin{figure}
  \centering
  \includegraphics[width=0.5\columnwidth]{my-figure}
\end{figure}

I would like to avoid specifying \centering in each figure, and instead would like to specify an alternative orientation if needed (rarely). Is this possible?

1 Answers1

4

Try this one:

\documentclass{article}

\usepackage[draft]{graphicx} \makeatletter \g@addto@macro@floatboxreset\centering \makeatother

\begin{document}

\begin{figure} \includegraphics[width=0.5\columnwidth]{example-image-a.png} \end{figure}

\end{document}

WinnieNotThePooh
  • 3,008
  • 1
  • 7
  • 14