24小时热门版块排行榜    

查看: 3568  |  回复: 20
当前主题已经存档。

math105

金虫 (正式写手)

[交流] 【求助】如何在latex里插入图片

如何在latex里插入图片呢? 我试了好几天都不行,网络上baidu来的也不能运行,不知道是为什么.  我用的软件是中文tex套装 winedt, 请大家帮帮忙.
回复此楼

» 猜你喜欢

踏实做学问
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

haixing2008

荣誉版主 (文坛精英)

给你头文件

★ ★ ★ ★ ★
wuguocheng(金币+5,VIP+0): 谢谢帮助 10-22 12:01
\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}

希望对你有用,祝你好运!
平平淡淡才是真!
4楼2009-10-22 11:41:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

haixing2008

荣誉版主 (文坛精英)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
wuguocheng(金币+5,VIP+0): 谢谢haixing2008 10-16 13:58
math105(金币+10,VIP+0): 10-22 10:58
检查一下是不是头文件漏加宏包了,呵呵!
头文件需加:
\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}

仅供参考,祝你好运!
平平淡淡才是真!
2楼2009-10-16 12:22:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

math105

金虫 (正式写手)

我还是不能运行啊,不知道是为什么? 谁有好用的有图的模板提供一个? 不甚感谢.
踏实做学问
3楼2009-10-22 11:23:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cxymath

铁杆木虫 (知名作家)


wenzhenzhong(金币+1,VIP+0):~~ 10-22 15:21
大家多发言呀
5楼2009-10-22 13:05:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

digua88

至尊木虫 (著名写手)

很好,学些了
6楼2009-10-23 13:22:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

phdseeker

木虫 (小有名气)

★ ★
formleaf(金币+1,VIP+0):谢谢! 10-25 06:35
wenzhenzhong(金币+1,VIP+0):欢迎常过来讨论 10-25 13:03
你要把图片文件先放在你编辑文件的文件夹中,我一个同学就是因为没放图片一直插不进去
Smileisacurvethatsetsthingsstraight!
7楼2009-10-25 02:10:01
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

higher80

银虫 (小有名气)

不错,学习了
8楼2009-10-25 11:59:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

haixing2008

荣誉版主 (文坛精英)


wenzhenzhong(金币+1,VIP+0):THANKS 10-25 13:03
http://www.latexstudio.cn/index.html
好东西,一起分享!
平平淡淡才是真!
9楼2009-10-25 12:38:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

math105

金虫 (正式写手)

不知道为什么,我还是不能运行. 是不是我的模板有问题呢? 能不能发一个有图的模板给我看一下,不甚感谢啊!
踏实做学问
10楼2009-10-27 23:54:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 math105 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 070303 总分349求调剂 +3 LJY9966 2026-03-15 5/250 2026-03-16 14:24 by xwxstudy
[考研] 中科院材料273求调剂 +3 yzydy 2026-03-15 3/150 2026-03-15 21:15 by ms629
[考研] 294求调剂 +3 Zys010410@ 2026-03-13 4/200 2026-03-15 10:59 by zhq0425
[考研] 材料与化工 323 英一+数二+物化,一志愿:哈工大 本人本科双一流 +4 自由的_飞翔 2026-03-13 5/250 2026-03-14 19:39 by hmn_wj
[考研] 一志愿郑大070303,338分,求调剂 +4 dadawaf 2026-03-10 5/250 2026-03-14 01:20 by lsw010101
[考研] 285 求调剂 资源与环境 一志愿北京化工大学 +3 未名考生 2026-03-10 3/150 2026-03-13 23:04 by JourneyLucky
[考研] 308求调剂 +5 是Lupa啊 2026-03-11 5/250 2026-03-13 22:13 by JourneyLucky
[考研] 085600调剂 +5 漾漾123sun 2026-03-12 5/250 2026-03-13 22:06 by 星空星月
[考研] 求材料调剂 085600英一数二总分302 前三科235 精通机器学习 一志愿哈工大 +4 林yaxin 2026-03-12 4/200 2026-03-13 22:04 by 星空星月
[考研] 一志愿西南交大,材料专硕317求调剂 +5 lx8568 2026-03-11 5/250 2026-03-13 21:43 by peike
[考研] 0703化学一志愿211 总分320求调剂 +5 玛卡巴卡啊哈 2026-03-11 5/250 2026-03-13 21:40 by JourneyLucky
[考研] 293求调剂 +3 世界首富 2026-03-11 3/150 2026-03-13 16:27 by JourneyLucky
[考研] 求b区学校调剂 +3 周56 2026-03-11 3/150 2026-03-13 16:20 by JourneyLucky
[考研] 310求调剂 +3 【上上签】 2026-03-11 3/150 2026-03-13 16:16 by JourneyLucky
[考研] 求调剂 +7 18880831720 2026-03-11 7/350 2026-03-13 16:10 by JourneyLucky
[考研] 314求调剂 +7 无懈可击的巨人 2026-03-12 7/350 2026-03-13 15:40 by JourneyLucky
[考研] 328化工专硕求调剂 +4 。,。,。,。i 2026-03-12 4/200 2026-03-13 14:44 by JourneyLucky
[论文投稿] 投稿问题 5+4 星光灿烂xt 2026-03-12 6/300 2026-03-13 14:17 by god_tian
[考博] 26申博求助 +3 跳跃饼干 2026-03-10 4/200 2026-03-10 21:15 by Tntcnn
[硕博家园] 木虫好像不热闹了,是不是? +4 偏振片 2026-03-10 4/200 2026-03-10 09:51 by longwave
信息提示
请填处理意见