For some reason the graphics is rendered above the text. I'm using xelatex (with Chinese characters).
The relevant Chinese latex compiled using xelatex is on pastebin as for some reason stackexchange won't let me post some Chinese characters.
It probably has something to do with the trimming being faulty. Any help would be much appreciated.
EDIT:
Removing all the other unnecessary packages, removing sections and substituting the Chinese characters with English:
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{graphicx}
\begin{document}
AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
\begin{figure}[h!]
\includegraphics[trim={4cm 8cm 4cm 5.5cm},clip,height=8cm]{BotnetFamPie}
\end{figure}
\end{document}
Screenshot:
Without the trim and clip:



figureis a float. Floats are designed to float. That is, LaTeX moves them to where it thinks best. If you don't want that, don't usefigure. Just say\includegraphics{}. You can get a caption using\captionof{figure}{}from thecaptionorcapt-ofpackages. – cfr Aug 06 '15 at 02:21figureand just usedincludegraphics{}but the graphic is still covering the text. – M. Shaw Aug 06 '15 at 02:31\centerline. Use\centeringwithin a group or thecenterenvironment. – cfr Aug 06 '15 at 03:20\centerlineand it's still covering up the text. – M. Shaw Aug 06 '15 at 03:20pdflatexinstead ofxelatexand the relevant latex. – M. Shaw Aug 06 '15 at 08:03pngfile. – M. Shaw Aug 06 '15 at 08:23hhlineas well. Try, if you get the same problem witharticle, too. If yes, change it for the MWE. If you load\usepackage{showframe}, you will see that yourgeometrysettings are not perfect. But that is another topic. – LaRiFaRi Aug 06 '15 at 08:59documentclasstoarticleand adding thetrimandclipback will still have the image cover the text. I am unable to test this withpdflatexas the.texfile is encoded inUTF-8which I when I try to usepdflatexdespite the lack of Chinese characters gives me a lot ofText line contains an invalid character.errors. – M. Shaw Aug 06 '15 at 09:04adjustboxinstead. Just see in the duplicate I will link to in a second. One tip for the future: when you are doing some clipping, you might want to do\fbox{\includegraphics...}first in order to see the actual borders of your figure. Good luck with your TeXing! – LaRiFaRi Aug 06 '15 at 09:11