![如何通过参数定制图像的大小?](https://linux22.com/image/264513/%E5%A6%82%E4%BD%95%E9%80%9A%E8%BF%87%E5%8F%82%E6%95%B0%E5%AE%9A%E5%88%B6%E5%9B%BE%E5%83%8F%E7%9A%84%E5%A4%A7%E5%B0%8F%EF%BC%9F.png)
与此链接相关,创建命令以在问题中内联图像?有没有办法修改图像?例如,\Image[20][10]
高度为 20,宽度为 10。
答案1
\documentclass[border=12pt]{standalone}
\usepackage{graphicx}
\newcommand{\ImportGraphics}[3]{\includegraphics[width=#1,height=#2]{#3}}
\begin{document}
\ImportGraphics{2cm}{4cm}{example-image}
\end{document}