Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MikTeX Portable] Can't add local texmf directory #66

Closed
bepoli opened this issue Feb 13, 2018 · 8 comments
Closed

[MikTeX Portable] Can't add local texmf directory #66

bepoli opened this issue Feb 13, 2018 · 8 comments

Comments

@bepoli
Copy link

bepoli commented Feb 13, 2018

I installed latest portable build (2.9.6615-x64) on Windows 10 (user only install), run the update wizard and tried to add my local texmf directory using either MikTeX Console GUI or initexmf --register-root=path-to-texmf with no results, i.e. the changes in the directory list are not stored and disappear after closing and re-opening MikTeX Console.

Therefore, I'm not able to use my custom packages when compiling.

It worked fine with previous portable build (same custom texmf directory, same PC).

@edocevoli
Copy link
Member

Thank you. I can reproduce this bug.

A workaround exists:

cd \PATH\TO\MIKTEXPORTABLE
copy texmfs\config\miktex\config\miktexstartup.ini texmfs\install\miktex\config\miktexstartup.ini

@bepoli
Copy link
Author

bepoli commented Feb 14, 2018

Great! Thanks for the workaround!

@edocevoli
Copy link
Member

Thank you, this has been fixed.

@Quantasom
Copy link

I've installed Portable Edition 2.9.6621 on Windows 10 Pro (build 16299.371) on a hard disk drive in E:\Essentials\LaTeX-Environment\LaTeX\MiKTeX. I've still got the problem that I can't add a custom texmf directory permanently. I can add it in the console just fine without any issues and the path shows up in the list as E:/Essentials/LaTeX-Environment/LaTeX/mytexmf), but it's gone as soon as I restart the console. Packages inside the custom texmf path can't be found when compiling a LaTeX document. The file \mytexmf\miktex\data\le\texmf.fndb shows up in the directory, though.

The workaraound doesn't work, because miktexstartup.ini is already in the right place (texmfs\install\miktex\config\miktexstartup.ini).

@bepoli
Copy link
Author

bepoli commented Apr 17, 2018

@Quantasom Yeah, it seems not completely fixed for new installations. However, I've got it to work: copy miktexstartup.ini from texmfs\install\miktex\config\ to \texmfs\config\miktex\config\ (i.e. the opposite way compared to the workaround), then try again to add your custom directory and check if there are differences between the two miktexstartup.ini files. After that, try again to apply the workaround (overwriting the updated file that hopefully contains your custom directory to the original file).

@Quantasom
Copy link

@benplm Thank you! It worked.

@georgeraraujo
Copy link

This issue persists for me, even though I have a fully updated installation:

miktexportableconsole

I installed miktex-portable-2.9.6621.exe and added my local directories - as soon as I closed the console and opened it again, the directory entries would be lost. I had to find and install an old copy of miktexstartup.ini for my local directories to work:

;;; MiKTeX startup configuration


[Auto]
Config=Portable

[Paths]

;; ..\..\..\..\texmf;..\..\..\..\texmf-paid
UserRoots=
UserRoots;=..\..\..\..\texmf
UserRoots;=..\..\..\..\texmf-paid

@edocevoli
Copy link
Member

This has been fixed. Please get the latest updates. miktexstartup.ini is now written to the correct directory location.

@MiKTeX MiKTeX deleted a comment from a59 Jan 31, 2019
@MiKTeX MiKTeX deleted a comment from a59 Jan 31, 2019
@MiKTeX MiKTeX locked and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants