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 <[email protected]> on behalf of [email protected] <[email protected]> Sent: Wednesday, January 7, 2026 7:00 AM To: [email protected] <[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 <[email protected]> To: Tobias Hilbricht <[email protected]>, Rik Belew <[email protected]>, [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 <[email protected]> To: [email protected] Subject: Re: installed document classes not seen by LyX? Message-ID: <[email protected]> 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 +0000 From: Adrien Rebollo <[email protected]> To: [email protected] Subject: Is it possible to place a macro file in LyXDir ? Message-ID: <trinity-9242adfb-01ed-4678-8d74-3bee361b6c09-1767738544787@trinity-msg-rest-gmx-gmx-live-5bb597646f-2mkjf> Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260106/3676a261/attachment-0001.htm> ------------------------------ Message: 4 Date: Wed, 7 Jan 2026 13:47:05 +0700 From: Andreas Hild <[email protected]> To: [email protected] Subject: Re: LyX 2.4.3: table background colouring and vertical borders Message-ID: <caem4ggm+dfjhszzsyhzys4opidgbhqrmbur-y+tpjt0qcsr...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" On Tue, 6 Jan 2026 at 17:36, J?rgen Spitzm?ller <[email protected]> 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 handle this case differently? > LyX 2.5 will feature native (GUI) support for coloring, but in the > background, similar LaTeX code is generated. On Tue, 6 Jan 2026 at 17:29, Tobias Hilbricht <[email protected]> wrote: > Your example file works here as expected - four empty cells with > borders in LyX, four coloured empty cells with all borders after > compilation with pdflatex oder lualatex in the resulting PDF. > > This is with LyX 2.4.4 and $ lualatex -v > This is LuaHBTeX, Version 1.22.0 (TeX Live 2025) Thank you kindly J?rgen and Tobias for the information! Best, Andy ------------------------------ Subject: Digest Footer lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users ------------------------------ End of lyx-users Digest, Vol 320, Issue 5 *****************************************
-- lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users
