How do I add a custom .sty file to MiKTeX Portable?
Adding it to
.\tex\latex\misc and then refreshing the database doesn't work -- Xetex still avoids searching for the file altogether, outside of the current
.tex file directory.
Apparently MikTeX Portable doesn't like custom additions to its own
TEXMF tree. You'll have to create your own tree, say in
E:\own-texmf (let's assume
E: is the thumb drive containing your MikTeX Portable installation.
Put your custom
.sty in, say,
Then in the MikTeX Options dialog, switch to the Roots pane, and add
E:\own-texmf to the list of registered root directories.
Now go back to the General pane, and Refresh FNDB. MikTeX Portable should now be able to see your custom
That's a pretty old thread but just for documentation... I could install a custom package into a portable miktex installation. It appears that miktex portable doesn't like you adding packages into texmfs\install directory. You should create your own install folder and drag'n'drop packages from tds.zip files to there. Add this folder to path list in MikTex Options > Root, so Update FNDB normally. It have to work now.