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.
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, E:\own-texmf\tex\latex\misc.
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 .sty file.
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.
.styfile in the same directory as your.texdocument. XeTeX (or LaTeX) searches in the current directory, but does not go into subdirectories. – imnothere Mar 22 '12 at 07:34.\tex\latex\miscis and how exactly you refreshed the database. – Ulrike Fischer Mar 22 '12 at 07:44<miktex-root>\tex\latex\misc. I refreshed the database by clicking onRefresh FNDBin MiKTeX Options. – user541686 Mar 22 '12 at 07:54