Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 down vote accepted

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

\setcapwidth[c]{0.9\textwidth}
share|improve this answer
add comment

Your Answer

 
discard

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.