Text FormattingInsert Graphics Problem

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
syhue2
Posts: 4
Joined: Wed Jan 08, 2020 6:01 am

Insert Graphics Problem

Post by syhue2 »

\begin{figure}[tp] % float placement: (h)ere, page (t)op, page (b)ottom, other (p)age
\centering
% file name: C:/Users/Hue/OneDrive/Semester 8/FYP - Bachelor Degree Project Report/Proposal PCTeX/Hierarchy.eps
\includegraphics[bb=0 0 683 643,width=4.44in,height=4.19in,keepaspectratio]{Hierarchy}
\caption{Caption for Hierarchy}
\label{fig:Hierarchy}
\end{figure}

The first one is the original photo with format eps and the second one is the screenshot of typesetting, why is look different?
Untitled Diagram.png
Untitled Diagram.png (43.77 KiB) Viewed 1697 times
Screenshot (397).png
Screenshot (397).png (255.61 KiB) Viewed 1697 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Insert Graphics Problem

Post by Ijon Tichy »

Maybe different bounding boxes or wrong bb option. But without knowledge about the EPS and the PDF and how the PDF has been made, we cannot say anything about the reason. You can try to use pdfcrop to fix the bounding box of the PDF. But this could also fail or make things worse than better. As a first step I would recommend to remove the bb option from \includegraphics.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
syhue2
Posts: 4
Joined: Wed Jan 08, 2020 6:01 am

Insert Graphics Problem

Post by syhue2 »

Ijon Tichy wrote:Maybe different bounding boxes or wrong bb option. But without knowledge about the EPS and the PDF and how the PDF has been made, we cannot say anything about the reason. You can try to use pdfcrop to fix the bounding box of the PDF. But this could also fail or make things worse than better. As a first step I would recommend to remove the bb option from \includegraphics.


\begin{figure}[tp] % float placement: (h)ere, page (t)op, page (b)ottom, other (p)age
\centering
% file name: C:/Users/Hue/OneDrive/Semester 8/FYP - Bachelor Degree Project Report/Proposal PCTeX/Hierarchy.eps
\includegraphics[width=4.44in,height=4.19in,keepaspectratio]{Hierarchy}
\caption{Caption for Hierarchy}
\label{fig:Hierarchy}
\end{figure}

Thanks for your reply.

However, I have been removed but the result is still the same.
Post Reply