「 LaTex 」 插入图片的方式,及常见错误

一.前言

使用Letax插入图片后,只显示名字,没有内容,如下图所示:

二.原因

图片命名路径中含有空格。

三.解决办法

把图片名称路径中的空格删除即可。

*附入两种图片的命令

% For one-column wide figures use 单栏排版插入图片
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
  \includegraphics[width=0.45\textwidth]{Theschematicdiagramofthree-wheeledrobot.png}
% figure caption is below the figure
\caption{The schematic diagram of three-wheeled robot}
\label{fig:1}       % Give a unique label
\end{figure*}
%

% For two-column wide figures use 双栏排版插入图片
\begin{figure}
% Use the relevant command to insert your figure file.
% For example, with the graphicx package use
%  \includegraphics{The schematic diagram of three-wheeled robot.png}
% figure caption is below the figure
%\caption{The schematic diagram of three-wheeled robot}
%\label{fig:1}       % Give a unique label
\end{figure}
%
发布了197 篇原创文章 · 获赞 627 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/103852070