2

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

4
  • Welcome to TeX SX! What you mean is not clear. What is this frame you mention? The right margin?
    – Bernard
    Commented Jul 29, 2016 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
    Commented Jul 29, 2016 at 10:01
  • Yes, I supposed you used showframe
    – Bernard
    Commented Jul 29, 2016 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
    Commented Jul 29, 2016 at 11:39

1 Answer 1

4

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .