不少用户纠结LaTeX编译方式不支持jpeg,png等图片格式。网上也有ebb程序的解决方法,解决了其他图片格式生成可供TeX可以读入的图片范围信息,即boundingbox的值,ebb程序也是抽取jpeg,png的bb值。本文给大家介绍的是bmpsize包:
Package bmpsize analyzes bitmap images to extract size and resolution data. It adds this feature to the graphics package that now do not need separate bounding box files for bitmap images. Additionally the implementation for the inclusion of bitmap images in some drivers of package graphicx are rewritten to support options viewport, trim and clip.下面是测试代码:
\documentclass{book}
\usepackage[dvipdfmx]{graphicx}
\usepackage{bmpsize}
\begin{document}
\includegraphics[width=\linewidth]{test.png}
\end{document}
发表评论 取消回复