1

I have some problems with the sidecap package. The figure and the caption are always centered. What i want is that the figure starts at the beginning of the frame and that the caption should go until the end of the frame.

I already tried making the captionwidth larger but when i do that the caption will start in the figure. Does anybody knows the solution?

\begin{SCfigure}[][h]
    \includegraphics[scale=1]{RogowskiStroom}
    \captionsetup{width=1.2\textwidth}
    \caption[Opstelling van een Rogowski spoel bij een geleider.]{\textbf{Opstelling van een Rogowski spoel bij een geleider.} Overgenomen uit\cite{Rogowski}.}
    \label{fig_rogowski}
\end{SCfigure}

enter image description here

  • Welcome to TeX SX! What you mean is not clear. What is this frame you mention? The right margin? – Bernard Jul 29 '16 at 9:41
  • Oops, indeed with the frame i mean the max text width. What i want is that the caption starts a new line at the end of text width. – Sander Jul 29 '16 at 10:01
  • Yes, I supposed you used showframe – Bernard Jul 29 '16 at 11:09
  • True, that confused me. But to be clear, I want to have the figure from the beginning instead of an offset. Same for the caption, it stops before the max text width has reached. – Sander Jul 29 '16 at 11:39
3

The trick is to use a big optional argument (it's the ratio between the caption width and the figure width).

\documentclass[a4paper]{article}
\usepackage[showframe]{geometry}
\usepackage{graphicx} %
\usepackage{sidecap, caption}

\begin{document}

\sidecaptionvpos{figure}{c}
\begin{SCfigure}[50][h]
\includegraphics[scale=1]{TasmanianDevil}
\caption[Opstelling van een Rogowski spoel bij een geleider.]{\textbf{Opstelling van een Rogowski spoel bij een geleider.} Overgenomen uit\cite{Rogowski}.}
\label{fig_rogowski}
\end{SCfigure}

\end{document} 

enter image description here

  • Thanks you very much, that is probably the only thing that i didn't tried from the sidecap package options. Thanks for helping! – Sander Jul 29 '16 at 13:52

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.