Hi,
I have a pdf file with a one page diagram, and I am trying to insert this file in my file that I am creating through Texmaker. But the digram is not getting centered in the pdf file that I create using Texmaker. Probably I am using wrong command. Is this the case?
The commands that I am using are
\begin{figure}[htp]
\begin{center}
\includegraphics{chart}
\end{center}
\caption{Process Flow Chart}
\end{figure}
Thank you,
Omkar
General ⇒ inserting figure
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
inserting figure
Hi Omkar,
that could should work and center the diagram. Instead of the center environment I prefer \centering:
center produces additional vertical space.
Does your diagram has a margin inside, that may cause the not-centered look?
Stefan
that could should work and center the diagram. Instead of the center environment I prefer \centering:
Code: Select all
\begin{figure}[htp]
\centering
\includegraphics{chart}
\caption{Process Flow Chart}
\end{figure}
Does your diagram has a margin inside, that may cause the not-centered look?
Stefan