Redian新闻
>
How can I make latex find required .sty on its own?
avatar
How can I make latex find required .sty on its own?# TeX - TeX电子排版系统
r*e
1
When I run latex with a tex document (eg. A.tex), it requires some .sty files.
I have to copy these required .sty files to the folder where the document A.tex located. Otherwise, latex doesn't know where to find .sty files. Because I have many different files in
different folders, I am sick to copy these .sty files to all these folders. It is stupid. But I don't what I can do otherwise, so that latex could find .sty files on its own? Could anyone please help me?
Thanks alot.
avatar
T*n
2
You need to tell us which TeX distribution you are using, i.e., MikTeX,
teTeX, fpTeX, or something else.
LaTeX searches for files in a database, not on disk, so after you install
a package, you need to update the database. For teTeX, run "texhash";
for MikTeX, go through the MikTeX menus and look for "Refresh/update
filename database"; for fpTeX, look for "Rebuild ls-R filename databases".
For some distributions the command "mktexlsr" also works.

files.
.tex located. Otherwise, latex doesn't k

【在 r**********e 的大作中提到】
: When I run latex with a tex document (eg. A.tex), it requires some .sty files.
: I have to copy these required .sty files to the folder where the document A.tex located. Otherwise, latex doesn't know where to find .sty files. Because I have many different files in
: different folders, I am sick to copy these .sty files to all these folders. It is stupid. But I don't what I can do otherwise, so that latex could find .sty files on its own? Could anyone please help me?
: Thanks alot.

avatar
p*u
3
I use MikTex and Winedt. I have same problems too.

Because

【在 T*******n 的大作中提到】
: You need to tell us which TeX distribution you are using, i.e., MikTeX,
: teTeX, fpTeX, or something else.
: LaTeX searches for files in a database, not on disk, so after you install
: a package, you need to update the database. For teTeX, run "texhash";
: for MikTeX, go through the MikTeX menus and look for "Refresh/update
: filename database"; for fpTeX, look for "Rebuild ls-R filename databases".
: For some distributions the command "mktexlsr" also works.
:
: files.
: .tex located. Otherwise, latex doesn't k

avatar
J*r
4
reinstall your miktex and install a complete package,
never need to worry about a new package, almost.

【在 p*****u 的大作中提到】
: I use MikTex and Winedt. I have same problems too.
:
: Because

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