latex trim code example
Example: crop the figure to the left in latex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
% trim from left edge
\includegraphics[trim={5cm 0 0 0},clip]{example-image-a}
% trim from right edge
\includegraphics[trim={0 0 5cm 0},clip]{example-image-a}
\end{document}