How can I center the figure and justify its caption at the same time? Normally, I use \centering to center the figure, but it centers the caption also. I don't need this. I need to center the figure and justify its caption. Can anyone help?
Regards
Graphics, Figures & Tables ⇒ centering the figure and justifying its caption
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
centering the figure and justifying its caption
Usually using
minimal working example would be useful. Maybe you are mixing this up with the default centering of one-line captions? You can switch this of using package caption. See the package manual for more information.
\centering
inside a figure
environment does not center the caption. So a 
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

centering the figure and justifying its caption
Here is an example
Code: Select all
\begin{figure}[h]
\centering
\includegraphics[scale=0.30]{Figures/Figure}
\caption{XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.}
\label{RelativeIntensity}
\end{figure}
Last edited by Stefan Kottwitz on Thu Apr 08, 2021 5:59 pm, edited 1 time in total.
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
centering the figure and justifying its caption
but neither aAmlaser wrote:Here is an example

Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. 

- Stefan Kottwitz
- Site Admin
- Posts: 10343
- Joined: Mon Mar 10, 2008 9:44 pm
centering the figure and justifying its caption
Hi Amlaser,
I marked the code in your post. That can be done with the "Code" button when writing a post. The benefit is that it's much better readable and can be compiled to PDF in a single click. (even this incomplete snippet, with limited guessing auto-completion).
Also I would use the caption package, the settings are explained in the caption manual.
Stefan
I marked the code in your post. That can be done with the "Code" button when writing a post. The benefit is that it's much better readable and can be compiled to PDF in a single click. (even this incomplete snippet, with limited guessing auto-completion).
Also I would use the caption package, the settings are explained in the caption manual.
Stefan
LaTeX.org admin
centering the figure and justifying its caption
Thanks Stefan,
Actually, I'm new here and I couldn't express what I meant well.
Thanks again
Actually, I'm new here and I couldn't express what I meant well.
Thanks again