Graphics, Figures & Tables ⇒ Why the caption is always aligned at the left?
Why the caption is always aligned at the left?
Here are the code that I used
\usepackage{graphics}
\begin{figure}
\begin{center}
\includegraphics[height=150mm]{flowchart.eps}
\caption{General procedure}
\end{center}
\label{fig:flowchart}
\end{figure}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Why the caption is always aligned at the left?
Why the caption is always aligned at the left?
Code: Select all
\usepackage{amsmath} % need for subequations\usepackage{graphics}\usepackage{verbatim} % useful for program listings\usepackage{color} % use if color is used in text\usepackage{times}\usepackage{hyperref} % use for hypertext links, including those to external documents and URLs\usepackage{thesis}\usepackage{float, rotating, subfigure} % use for side-by-side figures\usepackage[center]{caption}\usepackage[toc]{appendix}
Re: Why the caption is always aligned at the left?
and if caption.sty does not exists
\usepackage[center]{caption}
would cause an error when compiling your document.
And by the way please post minimal examples not document sniplets.
Why the caption is always aligned at the left?
Code: Select all
\makeatletter
Why the caption is always aligned at the left?
No, that's definitively not the case. \makeatletter does something entirely different and should not appear in "normal" documents. There must be something really wrong in your document if things like that are happening. Again, please post an MWE so that we can see what's going wrong.mojin wrote:After some test, I found the following command
make the caption align at the left.Code: Select all
\makeatletter