r**********e 发帖数: 28 | 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. | T*******n 发帖数: 493 | 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.
| p*****u 发帖数: 310 | 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
| J*******r 发帖数: 379 | 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
|
|