Hi all,
I have trawled the internet but cannot find the answer to this simple question:
What command (and where do I put it) to make the width of the figure caption equal to the width of the main text?
Currently the figure text overhangs the margins and it looks rubbish! This is what I'm using:
\begin{figure}
\centering
\includegraphics[height=80mm]{Picture.jpg}
\caption{...long figure caption....}
\label{Picture}
\end{figure}
Graphics, Figures & Tables ⇒ Aligning figure captions with the text
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Aligning figure captions with the text
Somehow I can't comprehend the problem.depic wrote:[…] What command (and where do I put it) to make the width of the figure caption equal to the width of the main text?[…]
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{figure}[!ht]
\centering
\rule{6.4cm}{3.6cm}
\caption{\blindtext}\label{fig:dummy}
\end{figure}
\blindtext
\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10