Crop inserted image in LaTeX

December 14, 2023 (11mo ago)

\includegrahics[trim={<left> <lower> <right> <upper>},clip]{path-to-image}
\documentclass{article}

\usepackage{graphicx}

\begin{document}
...

\begin{figure}[...]
    ...
     % trim 5cm from left edge
    \includegraphics[trim={5cm 0 0 0},clip]{path-to-image}
    % trim 5cm from right edge
    \includegraphics[trim={0 0 5cm 0},clip]{path-to-image}
      \caption{default}
      \label{default}
    ...
\end{figure}
...
\end{document}