TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add text (i.e the image source), which includes a citation, at the bottom right of a figure like this:

figure with source

I wrote the following piece of code:

{\small{\raggedleft{test \cite{_some_citation_}}}       %this does not work    
\caption{Merit-order of generating plants}  

which produces this result:

figure latex no source

I have tried several variations of the code, by putting the "test" text before the \centercommand and by enclosing \center within {} (which, strangely, makes the "test" text left justified). What is the correct way to achieve what I want?

PS: I am using the bookest document class and the graphicx, float and wrapfig packages. I havent posted the preamble because I dont know if its relevant, but can do so if asked.

share|improve this question
up vote 5 down vote accepted
\hfill\small test \cite{_some_citation_}    
\caption{Merit-order of generating plants} \label{fig:meritorder}  
share|improve this answer
thanks! just so I know, is \hfill the only (or easiest) way? More generally, do \raggedleft and such not work within float environments? – avg Jul 19 '14 at 20:06
sure, it works too. But \hfill is easier in this case. For \raggedleft you have to use a paragraph – Herbert Jul 19 '14 at 20:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.