I am wondering if it is possible to align an image to the right margin of the page (with \raggedleft) while still having it's caption nicely centered (with \centering) under the image (centered with respect to the image itself I mean, not w.r.t the page).
Is this possible in latex?
Ideally the solution should work within both a figureand wrapfigure environments.

\usepackage[margin=10pt,font=small,labelfont=bf,justification=centering,belowskip=0pt]{caption}– Matthias Apr 09 '12 at 17:04figurefloats: the captions will be set centered regardless of whether you use\centering,\raggedleft, or whatnot for the rest of thefigureenvironment. Not sure if this is also true forwrapfigureenvironments -- it may depend on how large the indented graphic is relative to the\linewidthparameter. Not knowing how these parameters are set in your code, I can't be more specific. – Mico Apr 09 '12 at 17:15