P******g 发帖数: 83 | |
P******g 发帖数: 83 | 2 没人支招?
【在 P******g 的大作中提到】 : thanks!
|
t****t 发帖数: 147 | 3 any
【在 P******g 的大作中提到】 : 没人支招?
|
P******g 发帖数: 83 | 4 可是我放在桌面上竟然不行,说找不到文件
【在 t****t 的大作中提到】 : any
|
l*****g 发帖数: 547 | 5 you better place at the same folder of your .tex file
other wise, you need to use graph path to indicate the path.
looks like
\graphicspath{{yourpaths1}{yourpath2}...}
【在 P******g 的大作中提到】 : thanks!
|
P******g 发帖数: 83 | 6 actually, I tried it again in that way, but it still does not work
what I did:
using GS view to convert a one-page PDF file into .eps file (any problem
with this?)
then, insert the eps file into .tex file using the following commands
\begin{figure}
\begin{center}
\includegraphics[width=0.5\textwidth,height=0.5\textheight]{test}
\end{center}
\end{figure}
【在 l*****g 的大作中提到】 : you better place at the same folder of your .tex file : other wise, you need to use graph path to indicate the path. : looks like : \graphicspath{{yourpaths1}{yourpath2}...}
|
t****t 发帖数: 147 | 7 test.eps?
【在 P******g 的大作中提到】 : actually, I tried it again in that way, but it still does not work : what I did: : using GS view to convert a one-page PDF file into .eps file (any problem : with this?) : then, insert the eps file into .tex file using the following commands : \begin{figure} : \begin{center} : \includegraphics[width=0.5\textwidth,height=0.5\textheight]{test} : \end{center} : \end{figure}
|
P******g 发帖数: 83 | 8 anything wrong with it? I changed the file name and compiled the file again,
It is still not working.
any suggestion? thanks
【在 t****t 的大作中提到】 : test.eps?
|
P******g 发帖数: 83 | 9 tried both test and test.eps
【在 t****t 的大作中提到】 : test.eps?
|
t****t 发帖数: 147 | 10 any error msg?
【在 P******g 的大作中提到】 : tried both test and test.eps
|
|
|
P******g 发帖数: 83 | 11 ! LaTeX Error: Unknown graphics extension: .eps.
I just checked the Latex.log file and found this error message. What does
that mean?
【在 t****t 的大作中提到】 : any error msg?
|
t****t 发帖数: 147 | 12 how did u compile u latex file?
pdflatex to pdf
or latex to dvi and then to ps
pdflatex can't handle ps/eps file
latex can't handle png/jpeg file
【在 P******g 的大作中提到】 : ! LaTeX Error: Unknown graphics extension: .eps. : I just checked the Latex.log file and found this error message. What does : that mean?
|
P******g 发帖数: 83 | 13 this error always occurs whenever I compile it from latex to pdf or to dvi.
【在 t****t 的大作中提到】 : how did u compile u latex file? : pdflatex to pdf : or latex to dvi and then to ps : pdflatex can't handle ps/eps file : latex can't handle png/jpeg file
|
i*i 发帖数: 918 | 14 Post the whole file please. I think you forget \usepackage{graphicx}.
For those who are not familiar with latex, please try lyx. In this case, lyx
will automatically use appropriate packages, and convert figures to
suitable formats if needed (e.g. eps->png if you use pdflatex). |
P******g 发帖数: 83 | 15 \documentclass[letterpaper,12pt,oneside]{book}
\pagestyle{plain}
\usepackage{graphicx}
\usepackage{setspace}
\onehalfspace
\title{Experimental....}
\author{H.}
\begin{document}
\frontmatter
\maketitle
\newpage
\section*{Abstract:}
Decomposition of .......
\mainmatter
\chapter{Introduction}
Hydrogen ....
\begin{figure}
\begin{center}
\includegraphics[width=0.5\textwidth,height=0.5\textheight]{test.eps}
\end{center}
\end{figure}
\end{document}
Please look at the structure of the above file to see
【在 i*i 的大作中提到】 : Post the whole file please. I think you forget \usepackage{graphicx}. : For those who are not familiar with latex, please try lyx. In this case, lyx : will automatically use appropriate packages, and convert figures to : suitable formats if needed (e.g. eps->png if you use pdflatex).
|
w**********g 发帖数: 14 | 16 我也遇到过,不知道怎么回事
用windows吧
【在 P******g 的大作中提到】 : thanks!
|