我使用了一些不属于texlive的.sty文件,并希望将它们放在我的main.tex文件夹的子目录中.我使用以下行加载包:
\usepackage{sty/prettythesis}
Run Code Online (Sandbox Code Playgroud)
这有效,但使用xelatex和使用橡胶编译main.tex 会给我一个警告:
sty/prettythesis.sty: You have requested package `sty/prettythesis',
but the package provides `prettythesis'. (page 1)
Run Code Online (Sandbox Code Playgroud)
有没有办法防止这种警告或处理这种情况,而不必在所有.sty-files'\ ProvidePackage命令中包含"sty \"或设置TEXINPUTS环境变量(这似乎不能从main.tex本身) ?