latex_4

%导言区
\documentclass{article}
\usepackage{ctex} %引入中文宏包

%导言区:\usepackage{graphicx}
%语法: \includegraphics[<选项>] {<文件名>}
%格式: EPS,PDF,PNG,JPEG,BMP

\usepackage{graphicx}
\graphicspath{{figures/},{pics/}}%图片在当前目录下的figures目录,以及pics文件夹
%正文区
\begin{document}
    \LaTeX{}中的插图

    \includegraphics{22_78.jpg}
    \includegraphics[scale=0.3]{22_78.jpg}
    \includegraphics[height=2cm]{22_78.jpg}
    \includegraphics[width=2cm]{22_78.jpg}
    \includegraphics[height=0.1\textheight]{22_78.jpg} % 文本高度0.1 倍的高度
    \includegraphics[width=0.2\textheight]{22_78.jpg}
    \includegraphics[angle=-45,width=0.2\textheight height=0.1\textheight]{22_78.jpg}

\end{document}
% texdoc graphicx

  

猜你喜欢

转载自www.cnblogs.com/hkkeryu/p/12127402.html