单图排版
非浮动环境
\usepackage{graphicx}
%用于显示图片的宏包
在引入了graphicx
宏包之后就可以用
\includegraphics[⟨options⟩]{⟨filename⟩}
来在当前位置引入图片。
{<filename>}
:图片的路径
[<options>]
:可选设置
可选参数 | 含义 |
---|---|
width=⟨width⟩ | 将图片缩放到宽度为 ⟨width⟩ |
height=⟨height⟩ | 将图片缩放到高度为 ⟨height⟩ |
scale=⟨scale⟩ | 将图片相对于原尺寸缩放 ⟨scale⟩ 倍 |
angle=⟨angle⟩ | 将图片逆时针旋转 ⟨angle⟩ 度 |
draft/final | 图片是否为草稿 |
可以用
\graphicspath
命令声名图片的路径\graphicspath{{figures/}{logo/}}
%假设主要的图片放在 figures 子目录下,标志放在 logo 子目录下