LaTeX 中裁剪图片

\begin{document}
% Answer: [trim={left bottom right top},clip]
% Ex. 1: trim from left edge
\includegraphics[trim={5cm 0 0 0},clip]{example-image-a}
% Ex. 2: trim from right edge
\includegraphics[trim={0 0 5cm 0},clip]{example-image-a}
\end{document}

顺序是左下右上。和 css 中的 margin 的指定是相反的顺序。(css 中是上右下左。css 这个好记忆,就是初始位置在最上面,然后顺时针。)