I would like to change the default float options for my figures, so that I only need to adjust one option in order to change the behavior of all figures in the document. On my previous computer (Ubuntu 14.04), I had been doing something like this:
\documentclass{article}
\newcommand{\defaultplacement}{htb}
\begin{document}
\begin{figure}[\defaultplacement]
\caption{Example}
\end{figure}
\end{document}
I'm now trying to build on Ubuntu 16.04, and am getting the following error:
./figures/ch1/coordinate_system.tex:1: LaTeX Error: Unknown float option `\'.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 \begin{figure}[\defaultplacement]
It seems that previously, LaTeX was replacing \defaultplacement with its value before processing, but now it is processing the macro in place. My guess is that my original solution was a bit of a hack, and that there is a better way to reset the default figure (and table?) placement that I've just been unable to find.
\makeatletterand\makeatother, here's a helpful question: https://tex.stackexchange.com/questions/8351/what-do-makeatletter-and-makeatother-do#8353 – sudo make install Apr 15 '17 at 10:49