《转》怎样在latex中插入jpg图片

转自:http://blog.csdn.net/bingfengxiao/article/details/6587300

以前只知道插入eps,ps格式,现在找到一种方法,不用再转换jpg为eps,可直接插入jpg。
方法如下:
导用下面的包
\usepackage{graphicx}

然后在文章中你想要加入的位置放置图片,格式如下:[ ]中的内容是可选的,{}中是你的图片和后缀名
\includegraphics[width=1.77in,height=1.75in]{pic.jpg}
然后用 pdf LaTeX 编译即可。
这是一个简单的添加图片的例子,如果要添加浮动图片,则要用到如下命令
\begin{figure} 
\centering
\includegraphics[width=1.77in,height=1.75in]{pic.jpg}
\caption{This is an inserted  JPG graphic}
\label{fig:graph}
\end{figure}

以前只知道插入eps,ps格式,现在找到一种方法,不用再转换jpg为eps,可直接插入jpg。
方法如下:
导用下面的包
\usepackage{graphicx}

然后在文章中你想要加入的位置放置图片,格式如下:[ ]中的内容是可选的,{}中是你的图片和后缀名
\includegraphics[width=1.77in,height=1.75in]{pic.jpg}
然后用 pdf LaTeX 编译即可。
这是一个简单的添加图片的例子,如果要添加浮动图片,则要用到如下命令
\begin{figure} 
\centering
\includegraphics[width=1.77in,height=1.75in]{pic.jpg}
\caption{This is an inserted  JPG graphic}
\label{fig:graph}
\end{figure}

猜你喜欢

转载自blog.csdn.net/fzxy002763/article/details/77198865