Generaladding packages manually to miktex 2.8

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hanshdk
Posts: 11
Joined: Wed Aug 26, 2009 2:40 pm

adding packages manually to miktex 2.8

Post by hanshdk »

Hi all,

This is probably a simple question.
I have used latex for about 4 years, but mainly on Linux. I now had to shift to windows, and installed miktex. I wanted to add a package manually, since it is not included in the miktex package manager. I simply cannot find out how to do it?

Googling gives me the advice to place the package in the directory "localtexmf\tex\latex" and then refresh the package list in the miktex options menu. But I cannot find any similar directories. I have tried with all directories, I would expect to be right. But it does not work.

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: adding packages manually to miktex 2.8

Post by josephwright »

"Out of the box", MiKTeX doesn't include a localtexmf-like directory. First, create one somewhere (I go for C:\Documents and Settings\<username>\texmf on winXP, or C:\Users\<username>\texmf on Windows 7). Then, using the MiKTeX Settings dialog, you need to add this as a new root on the Roots tab. Once you do this, MiKTeX will include this root when it scans for packages.
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

adding packages manually to miktex 2.8

Post by localghost »

josephwright wrote:"Out of the box", MiKTeX doesn't include a localtexmf-like directory. [...]
Maybe I'm wrong, but I would say that MiKTeX creates very well a local tree.

Code: Select all

C:\Documents and Settings\<username>\Application Data\MiKTeX\2.8
By default this folder is hidden in the explorer.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
hanshdk
Posts: 11
Joined: Wed Aug 26, 2009 2:40 pm

Re: adding packages manually to miktex 2.8

Post by hanshdk »

Thanks!

So far so good, I created a directory and added it as a root. Pressed refresh. But it wont work? Any clue why not?

The folder of my new package "nuthesis" is now:

"C:\Documents and Settings\user\localtexmf\tex\latex\nuthesis"

I have added "C:\Documents and Settings\user\localtexmf"

as a root... and pressed refresh....but the package is still not found?
TA

Btw. It is correct that miktex automatically adds some local roots. But it also says that I should not add packages manually to these folders, since they might be removed when updating miktex.
hanshdk
Posts: 11
Joined: Wed Aug 26, 2009 2:40 pm

Re: adding packages manually to miktex 2.8

Post by hanshdk »

works now, don't know what I changed.
Thanks for your help!
Post Reply