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

The koma class scrbook centers oneline captions if not given captions=nooneline. However, settings setcapmargin (\setcapmargin{0.05\textwidth}), also one line captions are left aligned with the additional margin.

How do I have multiline captions with a fixed margin but one line captions centered?

I may use the subfig package, if so, I want koma to handle the captions, therefore settings caption=false.

share|improve this question
Do you use the subfig with or without option caption=false? – Axel Sommerfeldt Jan 10 '13 at 15:53
up vote 1 down vote accepted

The "trick" is to set the caption width instead of the margin with "center" as optional position argument:

share|improve this answer

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.