I have a problem of placing caption at the bottom of figure and same time left side of main text. Please see attached image file. I use code:




\DeclareCaptionLabelFormat{myformat}{\rule{1.6cm}{1pt}\\ #1 \textbf{#2}}

    layoutvoffset= 32mm,layouthoffset= 11mm,
%   showcrop=true





\section{Caption location}

{\caption{Caption beside left, bottom of Small-Figure }\label{fig:01_400}}


    \caption{Caption left, bottom of Wide-Figure}


Main text move up

  • Welcome to TeX SX! Do you mean you'd like to have figure captions in the margin? – Bernard Nov 26 '16 at 13:12
  • Just a comment on your page layout settings: If you use the geometry package already, you can as well let it handle the setting of text width, margins etc. – Michael Palmer Nov 26 '16 at 14:14
  • On an ad-hoc basis, you can just add some negative vertical space at the end of the figure: \end{minipage} \vspace{-6\baselineskip} \end{figure}. A general solution is harder, and if it were to insert some automatically calculated negative white space at the end of the figure, the caption might end up protruding into the bottom margin of the page, or colliding with other margin material. I played with this kind of design a while ago and concluded that it was more trouble than it's worth. – Michael Palmer Nov 26 '16 at 14:45
  • 1
    You can \smash the caption, but again you face the possibility of overlapping the bottom of the page. – John Kormylo Nov 26 '16 at 14:55

You can achieve that layout with floatrow. The code below is mostly taken from frsample05.tex distributed with floatrow. The idea is to use figure* environment in a one-column layout and customizing widefigure. The important part is in \DeclareCaptionFormat{marginpars}, where the caption is set.





  style        = Boxed                        ,
  heightadjust = all                          ,
  frameset     = {\fboxrule=1pt\fboxsep=12pt} ,
  captionskip  = 7pt ,

  margins           = hangoutside     ,
  capbesideposition = bottom          ,
  capbesidewidth    = \marginparwidth ,
  facing            = yes             ,
  floatwidth        = \textwidth


  \vbox to 0pt{%
      \addtolength\leftskip{\dimexpr \textwidth+\marginparsep\relax}%
      \addtolength\rightskip{\dimexpr \textwidth+\marginparsep\relax}%

\DeclareCaptionLabelFormat{myformat}{\rule{1.6cm}{1pt}\\ #1 #2}

  font            = small  ,
  labelfont       = bf     ,
  font            = sf     ,
  labelsep        = period ,
  singlelinecheck = no}

  format      = marginpars ,
  labelformat = myformat

\def\text{{\mdseries And more text and some more text and a bit more
    text and a little more text and a little peace of text to fill



\chapter{Some Chapter}

\section{Some Section}


    {\caption{\texttt{widefigure} with \texttt{[b]} placement
      option.: \text }}


    {\caption{\texttt{widefigure} with \texttt{[t]} placement
      option. \text}}


    {\caption{\texttt{widefigure} with \texttt{[b]} placement
        option. \text}}



enter image description here

| improve this answer | |

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.