a****e 发帖数: 40 | 1 Hi all,
I have a latex file with figures in the same directory as the tex file (my.tex).
When I run the following command
latex --src-specials my
There is an error saying the figure file can not be found
!Latex Error: File 'ObjectsOne.eps' not found.
I used the following command to include the file:
\begin{figure}
\centering
\includegraphics[angle=0,width=3.25in]{ObjectsOne.eps} \\
\includegraphics[angle=0,width=3.25in]{ObjectsTwo.eps}
\caption{Sample Objects}\label{Fig:Sampl | T*******n 发帖数: 493 | 2
my.tex).
\includegraphics will automatically append ".eps" to the file name,
so just say \includegraphics[...]{ObjectsOne}, without the ".eps"
extension.
【在 a****e 的大作中提到】 : Hi all, : I have a latex file with figures in the same directory as the tex file (my.tex). : When I run the following command : latex --src-specials my : There is an error saying the figure file can not be found : !Latex Error: File 'ObjectsOne.eps' not found. : I used the following command to include the file: : \begin{figure} : \centering : \includegraphics[angle=0,width=3.25in]{ObjectsOne.eps} \\
| a****e 发帖数: 40 | 3 I tried it, still reported error.
【在 T*******n 的大作中提到】 : : my.tex). : \includegraphics will automatically append ".eps" to the file name, : so just say \includegraphics[...]{ObjectsOne}, without the ".eps" : extension.
| a******s 发帖数: 232 | 4 This must be a stupid problem. Are you sure the file name is not objectsone.
eps?
or sth like that? Have you included graphicx package? Normally, this kind of
problems are the easiest problems and should not be latex related at all.
my.tex).
the administrator just updated my machine, I am guessing my MikTex was changed
somewhere.
【在 a****e 的大作中提到】 : Hi all, : I have a latex file with figures in the same directory as the tex file (my.tex). : When I run the following command : latex --src-specials my : There is an error saying the figure file can not be found : !Latex Error: File 'ObjectsOne.eps' not found. : I used the following command to include the file: : \begin{figure} : \centering : \includegraphics[angle=0,width=3.25in]{ObjectsOne.eps} \\
| a****e 发帖数: 40 | 5 I am pretty sure about the file name and the package inclusion.
The identical stuff can be compiled without any problem on my laptop, but it
failed on the desktop.
Considering the desktop just got an update by the administrator, something
must have been changed.
I just want to figure out what are the possible changes that caused this, and
fix it.
I prefer to work on the desktop over on the laptop.
changed
【在 a******s 的大作中提到】 : This must be a stupid problem. Are you sure the file name is not objectsone. : eps? : or sth like that? Have you included graphicx package? Normally, this kind of : problems are the easiest problems and should not be latex related at all. : : my.tex). : the administrator just updated my machine, I am guessing my MikTex was changed : somewhere.
| T*******n 发帖数: 493 | 6 I've never used MikTeX, but its implementation of LaTeX has some
non-standard behavior. The --src-specials argument that you use
seems to be one of these, which I now suspect to be related to the
problem.
MikTeX should have a program called "kpsewhich". You should
open the DOS-like command-line terminal in Windows, go to the
directory where you have my.tex, and run the commands
kpsewhich my.tex
kpsewhich ObjectsOne.eps
LaTeX normally finds files through kpsewhich, so the first command
【在 a****e 的大作中提到】 : I am pretty sure about the file name and the package inclusion. : The identical stuff can be compiled without any problem on my laptop, but it : failed on the desktop. : Considering the desktop just got an update by the administrator, something : must have been changed. : I just want to figure out what are the possible changes that caused this, and : fix it. : I prefer to work on the desktop over on the laptop. : : changed
| a****e 发帖数: 40 | 7 Thanks a lot.
I figured out the problem.
There was a system update and, during the update, I do not have the read right
for the eps files.
The administrator changed the permission settings, and I can compile it now.
Thank you!
【在 T*******n 的大作中提到】 : I've never used MikTeX, but its implementation of LaTeX has some : non-standard behavior. The --src-specials argument that you use : seems to be one of these, which I now suspect to be related to the : problem. : MikTeX should have a program called "kpsewhich". You should : open the DOS-like command-line terminal in Windows, go to the : directory where you have my.tex, and run the commands : kpsewhich my.tex : kpsewhich ObjectsOne.eps : LaTeX normally finds files through kpsewhich, so the first command
|
|