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}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- 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