On 05/11/2010 11:31 AM, Emil Pavlov wrote:
На 1.11.2010 20:21, Emil Pavlov написа:
How can I set the alignment to centered for all table and figure
floats? I have to change it manually through "paragraph settings"
every time?

Best regards,

Emil Pavlov


I am afraid that my e-mail didn't get much attention, so I am sending it
again. I hope you won't find obnoxious.

Best regards,

Emil Pavlov


I had this in one of my file, in the preamble, using article class. It might or might not work with all classes, I don't know.

% a hook to center figures
\newcommand{\centerfloat}[1]{
\expandafte...@addto@macro\csname #1\expandafter\endcsname\expandafter{\centering}}

\centerfloat{figure}
\centerfloat{figure*}


--
Julien

Reply via email to