Re: Is it possible to place a macro file in LyXDir ?

2026-01-28 Thread Dr Eberhard Lisse
I would look at version control using git and put the common files on
github, then you clone the repo to each computer and you get both
unified versions, and one update somewhere can be easily distributed
via a Pull Request and subsequent pulls.


On 2026/01/20 12:07, Adrien Rebollo via lyx-users wrote:
[...]

> 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.
[...]

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Is it possible to place a macro file in LyXDir ?

2026-01-20 Thread Adrien Rebollo via lyx-users
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" 
An: "José Matos" , [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 [email protected]://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Is it possible to place a macro file in LyXDir ?

2026-01-13 Thread Steve Litt
Richard Kimberly Heck said on Fri, 9 Jan 2026 11:29:09 -0500

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

I do things a little differently. It's controversial and upsets Unix
purists because it violates the FHS (Filesystem Hierarchy Standard). I
don't necessarily recommend this, I'm just telling you how I do it.

I have a tree called /d where d stands for "data". Anything I create,
and anything I can't replace or buy again, gets placed somewhere in the
/d directory. The /d tree gets backed up in its entirety, containing
only valuable, irreplaceable files, without cruft like 100,000 cache
files, gigantic browser files including those awful Firefox identity
files, and other riff raff that either aren't necessary or you can
easily reconfigure. Also, when switching to a brand new computer,
doing a complete copy of your home directory sometimes conflicts with
your new hardware, and takes away your opportunity to do spring
cleaning so to get rid of config files from 20 years ago. For config
files that took a lot of work and aren't obvious, I can always copy
them to a temporary directory before backing up, as part of the backup
script. I do that on every backup.

My way isn't for everyone. It *certainly* isn't for a computer used by
multiple people (unless you have /d/sylvia and /d/slitt or something
like that), but for a single user personal PC it offers some
advantages.

SteveT

Steve Litt 

http://444domains.com

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Is it possible to place a macro file in LyXDir ?

2026-01-09 Thread Richard Kimberly Heck

On 1/9/26 2:41 AM, José Matos wrote:

Hi Steve,

On Thu, 2026-01-08 at 18:46 -0500, Steve Litt wrote:

I would place it somewhere other than the LyXDir directory, because
this file is data created by you, and should be backed up and
protected according to this fact. I could conceive of a situation where
a re-installation of LyX could delete your hand-created file. I've had
this happen with other applications.

I suspect that there could be some kind of misunderstanding here between us. :-)

Even without talking to Riki I think that the suggestion of implementing this 
in the next development version refers to the *User* 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


Re: Is it possible to place a macro file in LyXDir ?

2026-01-08 Thread José Matos
Hi Steve,

On Thu, 2026-01-08 at 18:46 -0500, Steve Litt wrote:
> I would place it somewhere other than the LyXDir directory, because
> this file is data created by you, and should be backed up and
> protected according to this fact. I could conceive of a situation where
> a re-installation of LyX could delete your hand-created file. I've had
> this happen with other applications.

I suspect that there could be some kind of misunderstanding here between us. :-)

Even without talking to Riki I think that the suggestion of implementing this in
the next development version refers to the *User* LyXDir.

This is directory is under the direct control of the user and so all your
remarks make sense.

In an hypothetical scenario, that is not being considered, if we decided to
implement this in *a* system LyXDir then the best way would be to add a new,
configurable, path where LyX would look into and never to place this directly
under the system LyXDir.

> If you're using Linux, you could create a symlink to this file in
> LyXDir, thus getting the best of both worlds.
> 
> SteveT
> 
> Steve Litt

Best regards,
-- 
José Abílio
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Is it possible to place a macro file in LyXDir ?

2026-01-08 Thread Steve Litt
Adrien Rebollo via lyx-users said on Tue, 6 Jan 2026 22:29:04 +

>Hello,
>I would like to place all my math macros in a single file, that would
>be included into all my documents, preferably in the LyXDir directory.

I would place it somewhere other than the LyXDir directory, because
this file is data created by you, and should be backed up and
protected according to this fact. I could conceive of a situation where
a re-installation of LyX could delete your hand-created file. I've had
this happen with other applications.

If you're using Linux, you could create a symlink to this file in
LyXDir, thus getting the best of both worlds.

SteveT

Steve Litt 

http://444domains.com

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re:  Is it possible to place a macro file in LyXDir ? (Adrien Rebollo)

2026-01-08 Thread Michael Dean Pugh
I have been doing this for years and for exactly the same reason.  I have not 
tried using include, but input works and I can't imagine why include wouldn't.  
You just need to add the macro file as a Child Document at the top of your 
document.  Maybe you are asking if there is a way to have this built in at the 
application level rather than document level.


From: lyx-users  on behalf of 
[email protected] 
Sent: Wednesday, January 7, 2026 7:00 AM
To: [email protected] 
Subject: lyx-users Digest, Vol 320, Issue 5

Send lyx-users mailing list submissions to
[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.lyx.org/mailman/listinfo/lyx-users
or, via email, send a message with subject or body 'help' to
[email protected]

You can reach the person managing the list at
[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lyx-users digest..."


Today's Topics:

   1. Re: installed document classes not seen by LyX?
  (Richard Kimberly Heck)
   2. Re: installed document classes not seen by LyX? (Rik Belew)
   3. Is it possible to place a macro file in LyXDir ? (Adrien Rebollo)
   4. Re: LyX 2.4.3: table background colouring and vertical
  borders (Andreas Hild)


--

Message: 1
Date: Tue, 6 Jan 2026 11:50:10 -0500
From: Richard Kimberly Heck 
To: Tobias Hilbricht , Rik Belew
, [email protected]
Subject: Re: installed document classes not seen by LyX?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 1/6/26 2:32 AM, Tobias Hilbricht wrote:
> Am Montag, dem 05.01.2026 um 18:15 -0800 schrieb Rik Belew:
>> but i cannot select the screenplay class (see below, it is not even
>> listed as Unavailable) via document settings.
>>
>> This seems to be a LyX (not TeX/LaTeX) issue.
> LyX needs a layout-file. Have a look in LyX -> Help -> Customization chapter 
> 5.2.3 and for examples in $LYXDIR/layouts.

Yes, that's exactly right. Layout files are what tell LyX about document
classes and their various resources. There is no way we can provide
layout files for every possible document class. There are simply too many.

Since screenplay.cls is based upon article.cls, that gives you a place
to start. But there seem to be a lot of custom commands and environments
that would need attention.

Riki




--

Message: 2
Date: Tue, 6 Jan 2026 10:20:32 -0800
From: Rik Belew 
To: [email protected]
Subject: Re: installed document classes not seen by LyX?
Message-ID:

Content-Type: text/plain; charset=UTF-8; format=flowed

Thanks Tobias and Richard!  I can work with that!

And it makes me appreciate anew all the prior work others have
done to glue LaTeX to Lyx!

- Rik

On 1/6/26 8:50 AM, Richard Kimberly Heck wrote:
> On 1/6/26 2:32 AM, Tobias Hilbricht wrote:
>> Am Montag, dem 05.01.2026 um 18:15 -0800 schrieb Rik Belew:
>>> but i cannot select the screenplay class (see below, it is not even
>>> listed as Unavailable) via document settings.
>>>
>>> This seems to be a LyX (not TeX/LaTeX) issue.
>> LyX needs a layout-file. Have a look in LyX -> Help -> Customization
>> chapter 5.2.3 and for examples in $LYXDIR/layouts.
>
> Yes, that's exactly right. Layout files are what tell LyX about document
> classes and their various resources. There is no way we can provide
> layout files for every possible document class. There are simply too many.
>
> Since screenplay.cls is based upon article.cls, that gives you a place
> to start. But there seem to be a lot of custom commands and environments
> that would need attention.
>
> Riki
>
>

--
R. K. Belew | yusef
[email protected]



--

Message: 3
Date: Tue, 6 Jan 2026 22:29:04 +
From: Adrien Rebollo 
To: [email protected]
Subject: Is it possible to place a macro file in LyXDir ?
Message-ID:



Content-Type: text/plain; charset="us-ascii"

An HTML attachment was scrubbed...
URL: 


--

Message: 4
Date: Wed, 7 Jan 2026 13:47:05 +0700
From: Andreas Hild 
To: [email protected]
Subject: Re: LyX 2.4.3: table background colouring and vertical
borders
Message-ID:

Content-Type: text/plain; charset="UTF-8"

On Tue, 6 Jan 2026 at 17:36, J?rgen Spitzm?ller  wrote:
> I don't see the behavior. Attached is a PDF (via pdflatex) generated
> from your MWE.
>
> > Is there a known workaround for this in LyX 2.4.x
> Read the colortbl manual: The \rowcolor command has two optional
> arguments to deal with such issues:
> \rowcolor[?color model?]{?color?} [?left overhang?][?right overhang?]
>
> > do newer LyX versions hand

Re: Is it possible to place a macro file in LyXDir ?

2026-01-07 Thread Adrien Rebollo via lyx-users
Thanks, I opened a ticket at http://www.lyx.org/trac/ticket/13274
Adrien

Le 7 janvier 2026 17:04:49 GMT+01:00, Richard Kimberly Heck 
 a écrit :
>On 1/6/26 5:29 PM, Adrien Rebollo via lyx-users wrote:
>> Hello,
>> I would like to place all my math macros in a single file, that would be 
>> included into all my documents, preferably in the LyXDir directory.
>> Because my LyX files are mostly stored on external drives and used across 
>> several systems (Linux and Windows), I would rather use the $LyXDir 
>> shortcut, but it doesn't appear to work. Am I missing something ?
>
>That does not (yet) work for included files. Feel free to file an enhancement 
>request. It shouldn't be hard to make it work, and I can't think of any reason 
>(off the top of my head) not to do it. However, it would be a format change, 
>which would mean it won't happen until 2.6.0.
>
>Riki
>
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Is it possible to place a macro file in LyXDir ?

2026-01-07 Thread Richard Kimberly Heck

On 1/6/26 5:29 PM, Adrien Rebollo via lyx-users wrote:

Hello,
I would like to place all my math macros in a single file, that would 
be included into all my documents, preferably in the LyXDir directory.
Because my LyX files are mostly stored on external drives and used 
across several systems (Linux and Windows), I would rather use the 
$LyXDir shortcut, but it doesn't appear to work. Am I missing something ?


That does not (yet) work for included files. Feel free to file an 
enhancement request. It shouldn't be hard to make it work, and I can't 
think of any reason (off the top of my head) not to do it. However, it 
would be a format change, which would mean it won't happen until 2.6.0.


Riki

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users