[Tex/LaTex] How to write multiple line caption with figure


How to split a long figure caption to multiple line? Using \\ doesn't work.

\caption{line 1...
    line 2...
    line 3...} 

Best Answer

Load the caption package; now you can use the standard line change command \\:



\caption{line 1 \\line 2 \\ line 3 } 


enter image description here

The demo option for graphicx simply replaces actual figures with black rectangles; do not use that option in your actual document.