Yes, I was suggesting to add the user $LyXDir.
I might explain the use case a bit more : all my documents are stored on a USB key that I use on various systems (at least three, Linux and Windows).
I have specific preamble files and LyX modules on my key, with a script that uploads them into the user $LyXDir each time they get out of sync. The only configuration file that can't be managed that way is the LyX document containing the math macros.
But yes, now I realize that I can place it in my home directory using the ~ shortcut.
I will temporarily do that, though I still think that the macro file should be stored at the same place as the other config files.
Adrien
Gesendet: Freitag, 9. Januar 2026 um 17:29
Von: "Richard Kimberly Heck" <[email protected]>
An: "José Matos" <[email protected]>, [email protected]
Betreff: Re: Is it possible to place a macro file in LyXDir ?
Yes, that is what I had in mind, but I think Steve may still have a
point. On Windows and OSX, I think we have to do various things to copy
over the user directory when we install new versions. I've also seen, on
my own system, ~/.lyx2.5, say, used as user directory for one version
and ~/.lyx2.4 for another. One might worry that files in one of these
could easily be lost on upgrade. Or when someone suggests moving the
user directory and starting afresh to deal with some problem.
That isn't necessarily a reason not to implement $LyXDir in this way,
but it might be a reason not to use it!
My own preference has always been simply to put the file of macros in
some central location (e.g., ~/Documents/) and use the full path to
include it.
Riki
--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
-- lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users
