General ⇒ inserting figure
inserting figure
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
inserting figure
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