latex install style file
2015-10-13 17:17
309 查看
You could create a folder below your TeX home directory and put your .sty file therein. Use this command at the command prompt to find out where:
kpsewhich -var-value=TEXMFHOME
it might also be
Following the TeX directory structure, you should place your file in a subdirectory like
This has the advantage that it is not necessary to update the package database as TeX searches your personal texmf tree directly.
If there is an ls-R file in your home texmf tree you can safely delete it as TeX will not use it anyway. (Note: this assumes your personal tree is on a local file system: users with remotely-mounted home folders may still need to hash.)
Regarding MiKTeX, have a look at the section “Installing sty or cls files” in the answer to the question How can I manually install a package on MikTex (Windows).
You can then verify what file will be used with:
kpsewhich filename.sty
This will show the path to the file picked up by the TeX implementation.
kpsewhich -var-value=TEXMFHOME
it might also be
~/texmf/on a Linux or Unix computer.
Following the TeX directory structure, you should place your file in a subdirectory like
~/texmf/tex/latex/commonstuff/, according to Arthur’s comment below.
This has the advantage that it is not necessary to update the package database as TeX searches your personal texmf tree directly.
If there is an ls-R file in your home texmf tree you can safely delete it as TeX will not use it anyway. (Note: this assumes your personal tree is on a local file system: users with remotely-mounted home folders may still need to hash.)
Regarding MiKTeX, have a look at the section “Installing sty or cls files” in the answer to the question How can I manually install a package on MikTex (Windows).
You can then verify what file will be used with:
kpsewhich filename.sty
This will show the path to the file picked up by the TeX implementation.
Reference
Where do I place my own .sty or .cls files, to make them available to all my .tex files?相关文章推荐
- Ubuntu12.04 安装LaTex(TexLive+TexMaker+中文环境) 4000
- Miktex 2.9 + Texmaker 中文显示
- 有关LaTeX参考文献的一些问题
- LaTeX实用宏命令
- LaTeX使用小结
- 关于LATEX插入图的处理,仅供参考
- LaTeX新人教程,30分钟从完全陌生到基本入门
- LaTeX入门笔记
- 经测可用的3个网页插入Latex公式在线编辑器
- latex 备忘
- (排bug)CTex+TeXstudio中文乱码问题
- 在Windows和Linux下使用LaTeX
- TeX排版记录 多行长公式 括号 对齐 问题
- Synctex无效的问题
- 将jpg/jpeg文件转换为eps格式,在latex文档中插入eps
- 使用LaTex/Ctex遇到的几个问题--内存不足、pgfplots安装等
- .cls vs. .sty
- [20140311]CSDN不能”原生“支持LaTex公式吗?
- 学习LaTeX
- LaTeX报错解决办法 Error: File 'amsmath.sty' not found