\makeatletter \providecommand*{\setfloatlocations}[2]{\@namedef{fps@#1}{#2}} \makeatother \setfloatlocations{figure}{htbp} \setfloatlocations{table}{htbp}