Re: OOP question: deduplicating code across two subclasses

2022-12-10 Thread Scott Kostyshak
On Sun, Dec 11, 2022 at 12:31:18AM +0100, Thibaut Cuvelier wrote: > On Sat, 10 Dec 2022 at 23:12, Scott Kostyshak wrote: > > > On Sat, Dec 10, 2022 at 10:36:51PM +0100, Thibaut Cuvelier wrote: > > > On Sat, 10 Dec 2022 at 17:19, Scott Kostyshak wrote: > > > > > > > PreambleModule::editExternal()

Re: OOP question: deduplicating code across two subclasses

2022-12-10 Thread Thibaut Cuvelier
On Sat, 10 Dec 2022 at 23:12, Scott Kostyshak wrote: > On Sat, Dec 10, 2022 at 10:36:51PM +0100, Thibaut Cuvelier wrote: > > On Sat, 10 Dec 2022 at 17:19, Scott Kostyshak wrote: > > > > > PreambleModule::editExternal() and LocalLayout::editExternal() share > > > most of their code. The functions

Re: lyx2lyx error not as informative when opening newer file

2022-12-10 Thread Yuriy Skalko
And opening such file with non-existing version in LyX (master, Win10) gives that old message: is from a newer version of LyX and the lyx2lyx script failed to convert it. Yuriy -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: lyx2lyx error not as informative when opening newer file

2022-12-10 Thread Yuriy Skalko
On 10.12.2022 15:22, Scott Kostyshak wrote: If you open a new .lyx file than the lyx2lyx version can handle we used to get: is from a newer version of LyX and the lyx2lyx script failed to convert it. Now we get: is not a readable LyX document. You can test this by just manually incre

Re: OOP question: deduplicating code across two subclasses

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 10:36:51PM +0100, Thibaut Cuvelier wrote: > On Sat, 10 Dec 2022 at 17:19, Scott Kostyshak wrote: > > > PreambleModule::editExternal() and LocalLayout::editExternal() share > > most of their code. The functions are pretty small, so there's not too > > much duplication as a

Re: OOP question: deduplicating code across two subclasses

2022-12-10 Thread Thibaut Cuvelier
On Sat, 10 Dec 2022 at 17:19, Scott Kostyshak wrote: > PreambleModule::editExternal() and LocalLayout::editExternal() share > most of their code. The functions are pretty small, so there's not too > much duplication as a whole. However, I'm still curious. How would I > best deduplicate the code?

Re: Baby steps towards more frequent major releases

2022-12-10 Thread José Matos
On Sat, 2022-12-10 at 19:03 +0100, Pavel Sanda wrote: > apt build-dep lyx > > Pavel For those of you using Fedora (and related distributions) the equivalent is surprisingly: $ dnf build-dep lyx ... Last metadata expiration check: 0:01:19 ago on Sat 10 Dec 2022 08:19:31 PM WET. Package make-1:4.3

Line numbers

2022-12-10 Thread Daniel
Why does the code preview, at least for Complete Source, not have line numbers? Wouldn't that be sometimes handy for tracking down LaTeX errors? Daniel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 05:44:28PM +, 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 i

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 05:48:15PM +, José Matos wrote: > On Sat, 2022-12-10 at 16:07 +0100, Jürgen Spitzmüller wrote: > > I am not sure, though, when exactly that isOthersChild() condition > > meets. > > FWIW my main complaint is that I open first the child and only then the > parent, thus if

Re: Baby steps towards more frequent major releases

2022-12-10 Thread Pavel Sanda
On Sat, Dec 10, 2022 at 11:16:16AM -0700, Joel Kulesza wrote: > apt build-dep lyx > Reading package lists... Done > E: You must put some 'deb-src' URIs in your sources.list > > > I wasn't sure if that meant this fell out of maintenance or was a > legitimate error. If legitimate, do we know how t

Re: Baby steps towards more frequent major releases

2022-12-10 Thread Joel Kulesza
On Sat, Dec 10, 2022 at 11:04 AM Pavel Sanda wrote: > On Sat, Dec 10, 2022 at 10:40:37AM -0700, Joel Kulesza wrote: > > If you (or someone) can help me provision the build environment to the > > point where I can build/package, I'd then be able to show potential > benefit > > apt build-dep lyx >

Re: Baby steps towards more frequent major releases

2022-12-10 Thread Pavel Sanda
On Sat, Dec 10, 2022 at 10:40:37AM -0700, Joel Kulesza wrote: > If you (or someone) can help me provision the build environment to the > point where I can build/package, I'd then be able to show potential benefit apt build-dep lyx Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://li

Re: lyx2lyx error not as informative when opening newer file

2022-12-10 Thread Richard Kimberly Heck
On 12/10/22 09:22, Scott Kostyshak wrote: If you open a new .lyx file than the lyx2lyx version can handle we used to get: is from a newer version of LyX and the lyx2lyx script failed to convert it. Now we get: is not a readable LyX document. You can test this by just manually increme

Re: Baby steps towards more frequent major releases

2022-12-10 Thread José Matos
On Sat, 2022-12-10 at 10:40 -0700, Joel Kulesza wrote: > Pavel, > > Thanks for these thoughts.  I tried to follow the ReleaseProcedure as > a test with an Ubuntu docker image (a minimal Ubuntu > "installation").  Almost everything needs to be installed, which begs > the question: what are the prer

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread José Matos
On Sat, 2022-12-10 at 16:07 +0100, Jürgen Spitzmüller wrote: > I am not sure, though, when exactly that isOthersChild() condition > meets. FWIW my main complaint is that I open first the child and only then the parent, thus if I close the parent I am not expecting the child to be closed since it w

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread José Matos
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 ex

Re: Baby steps towards more frequent major releases

2022-12-10 Thread Joel Kulesza
On Mon, Nov 28, 2022 at 2:20 AM Pavel Sanda wrote: > On Sat, Nov 26, 2022 at 02:42:52PM -0700, Joel Kulesza wrote: > > On Sat, Nov 26, 2022 at 2:16 PM Jean-Marc Lasgouttes > > > wrote: > > > > > Le 26/11/2022 ?? 21:17, Scott Kostyshak a écrit : > > > > 5. We should produce snapshot binaries (i.e

OOP question: deduplicating code across two subclasses

2022-12-10 Thread Scott Kostyshak
PreambleModule::editExternal() and LocalLayout::editExternal() share most of their code. The functions are pretty small, so there's not too much duplication as a whole. However, I'm still curious. How would I best deduplicate the code? In this case I wonder if a friend function might be the best c

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 02:17:16PM +, José Matos wrote: > Hi, > my use case is the following: I use beamer to generate the class > slides, at the same time I have I have another document that includes > this document but with class koma-script beamer to produce the hand > notes for students.

lyx2lyx error not as informative when opening newer file

2022-12-10 Thread Scott Kostyshak
If you open a new .lyx file than the lyx2lyx version can handle we used to get: is from a newer version of LyX and the lyx2lyx script failed to convert it. Now we get: is not a readable LyX document. You can test this by just manually incremending the number in the first line of a .lyx f

Re: master compile errors gzlib?

2022-12-10 Thread Kornel Benko
Am Sat, 10 Dec 2022 15:38:43 +0100 schrieb Yu Jin : > Am Do., 8. Dez. 2022 um 16:11 Uhr schrieb Kornel Benko : > > > Am Thu, 8 Dec 2022 09:52:29 -0500 > > schrieb Scott Kostyshak : > > > > > On Mon, Dec 05, 2022 at 10:15:18PM +0100, Yu Jin wrote: > > > > Am Mo., 5. Dez. 2022 um 10:39 Uhr schrieb

Re: Is "Edit" button clearly labeled in local layout and LaTeX preamble?

2022-12-10 Thread Scott Kostyshak
On Fri, Dec 02, 2022 at 02:45:17PM -0500, Richard Kimberly Heck wrote: > On 12/2/22 14:33, Scott Kostyshak wrote: > > Would it make sense to change these to "Edit Externally" ? Or is that too > > verbose? > > I think that's fine, and makes sense. Thanks, done at 9f7bbead. Scott signature.asc

Re: Can I push this 20MB commit to update the format of the docs?

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 11:48:24AM +, José Matos wrote: > On Fri, 2022-12-09 at 17:11 -0500, Richard Kimberly Heck wrote: > > I think it's ok myself. But we could also go ahead and produce a new > > alpha. I can do that if you wish, when I do the 2.3.7 tarball this > > weekend. > > > > Riki >

Re: Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread Jürgen Spitzmüller
Am Samstag, dem 10.12.2022 um 14:17 + schrieb José Matos: > Is there any option to avoid this automatic action? Or in another way > to say that I do not want to close the parent document when closing > this document in particular? Not that I know. OTOH there is in ~Buffer() // loop ov

Re: master compile errors gzlib?

2022-12-10 Thread Yu Jin
Am Do., 8. Dez. 2022 um 16:11 Uhr schrieb Kornel Benko : > Am Thu, 8 Dec 2022 09:52:29 -0500 > schrieb Scott Kostyshak : > > > On Mon, Dec 05, 2022 at 10:15:18PM +0100, Yu Jin wrote: > > > Am Mo., 5. Dez. 2022 um 10:39 Uhr schrieb Pavel Sanda : > > > > > > > > > > > Given that on major linux distr

Major annoyance with LyX (closing parent documents closes child)

2022-12-10 Thread José Matos
Hi, my use case is the following: I use beamer to generate the class slides, at the same time I have I have another document that includes this document but with class koma-script beamer to produce the hand notes for students. This ensures that the slides and hand notes are kept in synchrony. Tr

Re: iconv errors when opening IEEEtran-Conference.lyx

2022-12-10 Thread Scott Kostyshak
On Sat, Dec 10, 2022 at 01:02:15PM +0100, Jürgen Spitzmüller wrote: > Am Freitag, dem 09.12.2022 um 12:08 -0500 schrieb Scott Kostyshak: > > Changing \inputencoding from utf8 to auto-legacy leads to no iconv > > error. Is that a reasonable thing to do? I don't understand encodings > > well. > > Th

Re: Problems with lyx

2022-12-10 Thread Stephan Witt
Am 10.12.2022 um 11:59 schrieb Jacob Christian Hede Dahlgaard : > > Hi > > I have problems with making lyx work optimal. I get this message every time… > <0.png> > > But I have downloaded mactex on the Mac… and also lyx, what can I do? You’re probably on macOS Monterey or Ventura and there i

Re: iconv errors when opening IEEEtran-Conference.lyx

2022-12-10 Thread Jürgen Spitzmüller
Am Freitag, dem 09.12.2022 um 12:08 -0500 schrieb Scott Kostyshak: > Changing \inputencoding from utf8 to auto-legacy leads to no iconv > error. Is that a reasonable thing to do? I don't understand encodings > well. This is one possibility. The other one, which makes more sense in contemporary LaT

Re: iconv errors when opening IEEEtran-Conference.lyx

2022-12-10 Thread Jürgen Spitzmüller
Am Samstag, dem 10.12.2022 um 12:34 +0100 schrieb Kornel Benko: > The error shows while checking IEEEabrv.bib, which is latin1 encoded > (and not UTF-8 as > expected). > The problem is with the name > 'Nicolás Barabino'. (bibtex/bib/ieeetran/IEEEabrv.bib:24) Fixed. -- Jürgen signature.as

Re: Can I push this 20MB commit to update the format of the docs?

2022-12-10 Thread José Matos
On Fri, 2022-12-09 at 17:11 -0500, Richard Kimberly Heck wrote: > I think it's ok myself. But we could also go ahead and produce a new > alpha. I can do that if you wish, when I do the 2.3.7 tarball this > weekend. > > Riki If you do this (for 2.4) please call it beta-2 since we already have a b

Re: iconv errors when opening IEEEtran-Conference.lyx

2022-12-10 Thread Kornel Benko
Am Sat, 10 Dec 2022 08:52:25 +0100 schrieb Kornel Benko : > Am Fri, 9 Dec 2022 14:41:03 -0500 > schrieb Scott Kostyshak : > > > On Fri, Dec 09, 2022 at 07:28:03PM +0100, Kornel Benko wrote: > > > Am Fri, 9 Dec 2022 12:08:27 -0500 > > > schrieb Scott Kostyshak : > > > > > > > When opening I

Problems with lyx

2022-12-10 Thread Jacob Christian Hede Dahlgaard
Hi I have problems with making lyx work optimal. I get this message every time… But I have downloaded mactex on the Mac… and also lyx, what can I do?-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel