Major annoyance with LyX (closing parent documents closes child)
Scott Kostyshak
skostysh at lyx.org
Sat Dec 10 19:03:28 UTC 2022
On Sat, Dec 10, 2022 at 05:44:28PM +0000, José Matos wrote:
> On Sat, 2022-12-10 at 11:17 -0500, Scott Kostyshak wrote:
> > By "automatic action" you mean closing the parent document?
> >
> > What is your workflow? Do you just open the koma-script document to
> > generate the PDF, and then close it? If so, would it work for you to
> > use
> > a simple Bash alias that exports the PDF on the command line rather
> > than
> > doing it in LyX?
>
> I use a makefile to do that.
>
> slides.pdf: slides.lyx
> lyx -e pdf5 slides.lyx
> lyx -e pdf5 lecture_notes.lyx
>
> > I do something similar, and I have a Bash alias
> > "make-handout". It is not exactly the same as your setup, though. My
> > alias just copies the .lyx file (so I don't have to worry about it
> > interfering with the opened .lyx file), adds the "handout" document
> > class, and exports.
> >
> > Scott
>
> I have to use the manual setup when using a development version since
> the path depends on which version I am using, i.e. compiled with gcc,
> with gcc-latest, with clang... each one uses a different build dir
> while the source directory is the same.
I see. Indeed that is tricky.
> Of course I could export some kind of variable $LYXBIN with the path to
> the executable binary but that is cumbersome... :-(
Yes. I have something like that. I don't suggest you look at it, but
just in case:
https://gitlab.com/scottkosty/lyx-tester/-/blob/master/mylyx
Basically, I have a whole bunch of LyX versions, and I just use "mylyx
master" or "mylyx 2.3.x" depending on which I want. Note that you need
to set other things besides just LYXBIN. For example, if you're not
careful, LYXBIN will call tex2lyx from your path, not the local build. I
think there are other things as well.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221210/ef911692/attachment-0001.asc>
More information about the lyx-devel
mailing list