插入圖片


插入圖片
\documentclass{ctexart}
\usepackage{ctex}
% 導言區:\usepackage{graphicx}
% 語法:\includegraphics[<選項>]{<文件名>}
% 格式:EPS,PDF,PNG,JPEG,BMP
\usepackage{graphicx}
\graphicspath{{fig/},{pic/}} % 圖片的搜索路徑(同一文件夾下)


\begin{document}
    \LaTeX{}中的插圖:

    \includegraphics[scale=0.5]{vctk.png}

    \includegraphics[height=2cm]{vctk.png}

    \includegraphics[width=2cm]{vctk.png}

    \includegraphics[height=0.1\textheight]{vctk.png}
    
    \includegraphics[height=0.1\textwidth]{vctk.png}

    \includegraphics[angle=-45,height=0.1\textwidth]{vctk.png}

    \includegraphics[angle=45,width=0.2\textwidth]{vctk.png}
    
    \includegraphics[scale=0.5]{test2.pdf}
\end{document}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM