![]() Then, if you've installed the package in your home directory, you have nothing to do. texmf-local/tex/latex and not directly in the root directory it's just won't work otherwise. In any case and whatever your distribution, you have to place the. On Windows with MiKTeX, I believe the directory for local installs is C:\Localtexmf by default. You may also choose to create a directory called texmf in your home directory, and the package will be visible only to you, not the other users on your computer. The texmf-local hierarchy, as the names hints, is for local packages managed by you it won't be touched by updates (which is also why it's directly under the texlive directory, and not texlive/2009, for instance). You want to put it in the texmf-local directory, not in the other directories that are managed by the TeX Live installer when you upgrade TeX Live, your package may be overwritten. If you use Unix (including Mac OS) and TeX Live, there's by default a hierarchy /usr/local/texlive/2009/texmfĪs well as other directories. Those trees have a rather fixed structure, but their location may vary according to your OS and TeX distribution. sty files need to be put it some subdirectory of tex/latex in a texmf tree. For recent TeXLive distributions, this step is not necessary for files in the local folder. Once the 'hash' is created TeX should be able to find your file. This will build the databases for your tree (the one that is in your home folder). There are graphical interfaces to do this, but the way that works on all operating systems is to use the Command Prompt/Terminal and type texhash. Letting TeX 'know' about the file means running a program that builds a database of file locations. The local folder is reserved for stuff installed on individual machines. The file location is important, and although you could just put your file inside texmf/tex/latex is is usual to keep things organised by package. The folder I've indicated may well not exist: you may just have the texmf part, bits within that or nothing at all. ![]() Second, I've represented your home/user folder as ' ': this will obviously be dependent on your system. ![]() First, on Windows the 'Users' part of the location is language dependent. Note: the local/ folder might not exist in this case, go ahead and create it.Ī few of notes on that. Mac OS X /Users//Library/texmf/tex/latex/local/.Windows XP C:\Documents and Settings\\texmf\tex\latex\local\.Windows Vista/7 C:\Users\\texmf\tex\latex\local\.Assuming you have a standard installation, this will probably be:Ĭ:\Users\\Appdata\Local\MikTex\\tex\latex\local\ The place to put the file depends on your operating system. First, you have to put it in the 'right' place and second you need to update the database TeX uses to find files. There are two parts to telling TeX about a new. This will show the path to the file picked up by the TeX implementation.Īll of the other answers cover things quite well, but I thought a slightly different version might be helpful. ![]() ![]() You can then verify what file will be used with: kpsewhich filename.sty 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). (Note: this assumes your personal tree is on a local file system: users with remotely-mounted home folders may still need to hash.) If there is an ls-R file in your home texmf tree you can safely delete it as TeX will not use it anyway. This has the advantage that it is not necessary to update the package database as TeX searches your personal texmf tree directly. On my computer it shows C:/Users/stefan/texmfīut it might also be ~/texmf/ on a Linux or Unix computer.įollowing the TeX directory structure, you should place your file in a subdirectory like ~/texmf/tex/latex/commonstuff/, according to Arthur's comment below. Use this command at the command prompt to find out where: kpsewhich -var-value=TEXMFHOME You could create a folder below your TeX home directory and put your. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |