如何在latex里插入图片呢? 我试了好几天都不行,网络上baidu来的也不能运行,不知道是为什么. 我用的软件是中文tex套装 winedt, 请大家帮帮忙. 返回小木虫查看更多
检查一下是不是头文件漏加宏包了,呵呵! 头文件需加: \usepackage{graphicx} \usepackage{subfigure} 正文里面命令如下,分两种 1、如果图片是eps文件的话,用如下命令: \begin{figure}[h!] \centering \includegraphics[height=0.4\textwidth,width=0.5\textwidth]{e2.eps} \caption{Simulated results of the solutions.} \label{fige2} \end{figure} 2、如果图片格式是jpg文件的话,用如下命令: \begin{figure}[!htb] \centering \includegraphics[width=10cm]{e.jpg} \caption{模拟结果.} \label{figc1} \end{figure} 仅供参考,祝你好运!
我还是不能运行啊,不知道是为什么? 谁有好用的有图的模板提供一个? 不甚感谢.
\documentclass[11pt,a4paper]{article} \usepackage[dvips]{graphics} \usepackage{amssymb} \usepackage{amsmath} \usepackage{makeidx} %\usepackage{epsf} %\usepackage{emlines2} \usepackage{color} \usepackage{graphicx} %\usepackage{paisubfigure} \usepackage{subfigure} \usepackage{multicol} \hoffset=0truemm \voffset=0truemm \topmargin=0truemm \oddsidemargin=0truemm \evensidemargin=0truemm \textheight=226truemm \textwidth=158truemm \newtheorem{thm}{Theorem} \newtheorem{cor}[thm]{Corollary} \newtheorem{lem}[thm]{Lemma} \newtheorem{prop}[thm]{Proposition} \newtheorem{defn}[thm]{Definition} \newtheorem{alg}[thm]{Algorithm} \newtheorem{rem}[thm]{Remark} \newtheorem{exam}[thm]{Example} %\numberwithin{equation}{section} \newcommand{\double}{\baselineskip 1.2 \baselineskip} \newcommand{\citeu}[1]{$^{\mbox{\protect \scriptsize \cite{#1}}}$} \newcommand{\un}{\underline} \newcommand{\bo}{\tilde} \newcommand{\p}{\partial} \newcommand{\da}{\displaystyle} \newcommand{\pa}{\partial} \renewcommand{\arraystretch}{1.28} %\renewcommand{\tilde}[1]{\widetilde{#1}} \newcommand{\bv}[1]{\mbox{\boldmath $#1 $}} \newcommand{\bipar}[2]{\dfrac{\pa #1}{\pa #2}} 正文里面的插图命令 \begin{figure}[h!]\small \centering \includegraphics[height=0.38\textwidth,width=0.5\textwidth]{图片名称.eps} \caption{Simulated result of.} \label{fige3c} \end{figure} 希望对你有用,祝你好运,
大家多发言呀
很好,学些了
你要把图片文件先放在你编辑文件的文件夹中,我一个同学就是因为没放图片一直插不进去
不错,学习了
检查一下是不是头文件漏加宏包了,呵呵!
头文件需加:
\usepackage{graphicx}
\usepackage{subfigure}
正文里面命令如下,分两种
1、如果图片是eps文件的话,用如下命令:
\begin{figure}[h!]
\centering
\includegraphics[height=0.4\textwidth,width=0.5\textwidth]{e2.eps}
\caption{Simulated results of the solutions.}
\label{fige2}
\end{figure}
2、如果图片格式是jpg文件的话,用如下命令:
\begin{figure}[!htb]
\centering
\includegraphics[width=10cm]{e.jpg}
\caption{模拟结果.}
\label{figc1}
\end{figure}
仅供参考,祝你好运!
我还是不能运行啊,不知道是为什么? 谁有好用的有图的模板提供一个? 不甚感谢.
\documentclass[11pt,a4paper]{article}
\usepackage[dvips]{graphics}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{makeidx}
%\usepackage{epsf}
%\usepackage{emlines2}
\usepackage{color}
\usepackage{graphicx}
%\usepackage{paisubfigure}
\usepackage{subfigure}
\usepackage{multicol}
\hoffset=0truemm \voffset=0truemm \topmargin=0truemm
\oddsidemargin=0truemm \evensidemargin=0truemm
\textheight=226truemm \textwidth=158truemm
\newtheorem{thm}{Theorem}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{defn}[thm]{Definition}
\newtheorem{alg}[thm]{Algorithm}
\newtheorem{rem}[thm]{Remark}
\newtheorem{exam}[thm]{Example}
%\numberwithin{equation}{section}
\newcommand{\double}{\baselineskip 1.2 \baselineskip}
\newcommand{\citeu}[1]{$^{\mbox{\protect \scriptsize \cite{#1}}}$}
\newcommand{\un}{\underline}
\newcommand{\bo}{\tilde}
\newcommand{\p}{\partial}
\newcommand{\da}{\displaystyle}
\newcommand{\pa}{\partial}
\renewcommand{\arraystretch}{1.28}
%\renewcommand{\tilde}[1]{\widetilde{#1}}
\newcommand{\bv}[1]{\mbox{\boldmath $#1 $}}
\newcommand{\bipar}[2]{\dfrac{\pa #1}{\pa #2}}
正文里面的插图命令
\begin{figure}[h!]\small
\centering
\includegraphics[height=0.38\textwidth,width=0.5\textwidth]{图片名称.eps}
\caption{Simulated result of.}
\label{fige3c}
\end{figure}
希望对你有用,祝你好运,
大家多发言呀
很好,学些了
你要把图片文件先放在你编辑文件的文件夹中,我一个同学就是因为没放图片一直插不进去
不错,学习了