Redian新闻
>
Latex figure: can not find figure
avatar
Latex figure: can not find figure# TeX - TeX电子排版系统
a*e
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
avatar
T*n
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} \\

avatar
a*e
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.

avatar
a*s
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} \\

avatar
a*e
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.

avatar
T*n
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

avatar
a*e
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。