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.

a typical caption below an image looks like:

Fig 1.1: Whatever the content might be
______ it is described here.

My problem is that I'd like to write below "Fig 1.1" at the position of ______. I've managed to replace "Figure" by Fig, thus the lost space isn't that huge, but it's still annoying... Is there any way avaid this indent? Maybe something with \noindent? But this would require inserting manual line breaks everywhere...

I can't provide a minimum working example since it would require an image however everyone should see the issue when writing a little caption of at least two lines below an image.

Can anybody help me with this?

share|improve this question
    
Which document class do you use? –  Gonzalo Medina May 7 '13 at 15:29
    
its \documentclass[12pt,a4paper]{scrreprt}. Captions package is loaded this way: \usepackage[format=hang, justification=RaggedLeft, singlelinecheck=false, figurename=Fig., aboveskip=7pt, belowskip=0pt]{caption} –  Elarion May 7 '13 at 15:31
add comment

2 Answers

up vote 3 down vote accepted

You can set the caption indent to 0pt using \setcapindent; a little example using some of you settings for caption (I suppressed format=hang, justification=RaggedLeft, since they are contradictory with your desired formatting):

\documentclass{scrreprt}
\usepackage[singlelinecheck=false, figurename=Fig., aboveskip=7pt, belowskip=0pt]{caption}
\setcapindent{0pt}

\begin{document}

\chapter{Test Chapter}
\begin{figure}
\centering
A
\caption{Some text here to replace the actual caption for this figure. Add some more text to span several lines.}
\end{figure}

\end{document}

enter image description here

share|improve this answer
    
thanks, this looks promising and your working example does exactly what I was looking for :) However if I load the caption package with format=hang everything is back to how it was before. So what does format=Hang change? EDIT: Ah I see you changed your example :) In what way is format=hang contradictionary? What does it do exactly? –  Elarion May 7 '13 at 15:47
    
@Elarion using format=hang indents the caption text, so it will hang under the first line of the text, which is precisely what you don't want. –  Gonzalo Medina May 7 '13 at 15:49
    
ah, okay so this was the issue. I copied that setting from some page without knowing what it does and since everything was fine before it wasn't an issue but then I noticed the indent and I like better without one :) Thanks a lot for your quick help! –  Elarion May 7 '13 at 16:06
add comment

use

\usepackage[format=plain,
  justification=RaggedRight, 
  singlelinecheck=false, 
  figurename=Fig., 
  aboveskip=7pt, 
  belowskip=0pt]{caption}

instead of your setting.

share|improve this answer
    
this also does look nice, thank you :) Btw: is it possible to shift the entire caption to the right for lets say 10pt? Adding a \hspace{10pt} directly before \caption{} isn't working... –  Elarion May 7 '13 at 16:18
    
@Elarion Add margin=10pt to the caption package options. BTW: The caption package has a manual ;-) –  Axel Sommerfeldt May 7 '13 at 20:28
    
hmm, somehow that doesn't change a thing... Although I do not get a warning or something similar. I've found the manual :) but I couldn't find a working way to change the margin in order to shift the caption right or left –  Elarion May 8 '13 at 9:03
    
@Elarion When I add margin=10pt to the example document from Gonzalo Medina answer, it will actually change the margin of the caption. So if this does not work for you we need an example document from you showing the problem. I'm sorry, but "I can't provide a minimum working example since it would require an image however everyone should see the issue when writing a little caption of at least two lines below an image." is neither true nor sufficient. –  Axel Sommerfeldt May 9 '13 at 20:29
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.