Observe this folder as in the picture above with "Purposes: Generic", "Attributes: User" C:\Users\John\Documents\Sda\Code\WritingReadingTech\Markup\Latex\Libraries\texmf. Miktex Console (4.2) > Settings > Directories >. C:\Users\John\Documents\Sda\Code\WritingReadingTech\Markup\Latex\Libraries\texmf\tex\latex\MyPackage\MyPackage.sty We'll follow the advice in those links.Īnywhere you like: create a TEXMF root directory, with a structure suitable for your custom latex packages (.sty files). sty files? and KB: TEXMF root directories. Open Miktex Console (4.2) > Settings > Directories and observe the informational links FAQ: Which is the best directory to keep my. If you've put in texmf-local, on the other hand, you need to run the utility mktexlsr (or texhash, it's an alias).įor Windows (10) users on Miktex (Console 4.2): 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |