TransWikia.com

Figure with long caption on side, wrapping under it

TeX - LaTeX Asked by Panos on August 10, 2021

I want to have a figure and a long caption on the side of it. I have seen several solutions to do this (e.g. this one) however if the caption is long then the result looks ugly. I want the caption to wrap under the figure as well. Here’s my MWE to show what I mean:

documentclass{article}
usepackage[demo]{graphicx}
usepackage{floatrow}

begin{document}
    
    begin{figure}
        floatbox[{capbesidethisfloatsetup{capbesideposition={left,top},capbesidewidth=4cm}}]{figure}[FBwidth]
        {caption{A really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption a really long caption}}
        {includegraphics[width=5cm]{name}}
    end{figure}

end{document}

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP