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
benplm opened this issue Feb 13, 2018 · 8 comments

Comments

Projects
None yet
4 participants
@benplm
Copy link

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 edocevoli self-assigned this Feb 13, 2018

@edocevoli

This comment has been minimized.

Copy link
Member

commented Feb 13, 2018

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
@benplm

This comment has been minimized.

Copy link
Author

commented Feb 14, 2018

Great! Thanks for the workaround!

@edocevoli

This comment has been minimized.

Copy link
Member

commented Apr 1, 2018

Thank you, this has been fixed.

@edocevoli edocevoli closed this Apr 1, 2018

@Quantasom

This comment has been minimized.

Copy link

commented Apr 13, 2018

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).

@benplm

This comment has been minimized.

Copy link
Author

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

This comment has been minimized.

Copy link

commented Apr 17, 2018

@benplm Thank you! It worked.

@georgerbr

This comment has been minimized.

Copy link

commented Jun 19, 2018

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 edocevoli reopened this Jul 9, 2018

@edocevoli edocevoli added this to the 2.9.6800 milestone Jul 9, 2018

edocevoli added a commit that referenced this issue Jul 12, 2018

@edocevoli

This comment has been minimized.

Copy link
Member

commented Jul 13, 2018

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

@edocevoli edocevoli closed this Jul 13, 2018

@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.
You can’t perform that action at this time.