I have to include some images to illustrate a problem. So I used the following code to auto-scale them to text-witdh, which works amazing. But how can I add some caption? (I have to label and number all figures)?

I found some solutions with google (caption etc.) but AFAIK they need a figure-object. So I also tried to use it instead of this box, but then I was not able to auto-fit the image.





You do not need the \makebox if your images are of the same width.

| improve this answer | |
  • wow, works like a charm! – NaN May 24 '14 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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