Re: Starting new environment in the middle of a line

2022-11-09 Thread Udicoudco
On Wed, Nov 9, 2022 at 7:16 PM Scott Kostyshak wrote: > Sometimes (but not too often), I want to start an environment in the > middle of a line. > > In LaTeX, it seems to work fine, although I don't know if this is > considered bad practice. But in LyX, we can only start an environment at > the b

Re: Starting new environment in the middle of a line

2022-11-09 Thread Jürgen Spitzmüller
Am Mittwoch, dem 09.11.2022 um 12:16 -0500 schrieb Scott Kostyshak: > Am I missing a way to accomplish this in LyX without ERT? InsetFlex. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: A fast mostly collision free hash ?

2022-11-09 Thread Pavel Sanda
On Wed, Nov 09, 2022 at 12:29:49PM +0100, Jean-Marc Lasgouttes wrote: > Le 08/11/2022 ?? 20:44, Pavel Sanda a écrit : > >I do not follow what's your problem with QHash? Hash tables are designed too > >have > >collisions from time to time. > > My problem here is that I have a cache > [string, sc

Starting new environment in the middle of a line

2022-11-09 Thread Scott Kostyshak
Sometimes (but not too often), I want to start an environment in the middle of a line. In LaTeX, it seems to work fine, although I don't know if this is considered bad practice. But in LyX, we can only start an environment at the beginning of a paragraph I believe. Attached is an example in Ly

Re: A fast mostly collision free hash ?

2022-11-09 Thread Jean-Marc Lasgouttes
Le 08/11/2022 à 23:06, Thibaut Cuvelier a écrit : Probably, the less fancy option is to use std::hash, available since C++11. I have no idea about the quality of the produced hashes, and it seems it might really depend on the compiler too. This seems hazardous. I can totally understand the ne

Re: A fast mostly collision free hash ?

2022-11-09 Thread Jean-Marc Lasgouttes
Le 08/11/2022 à 20:44, Pavel Sanda a écrit : I do not follow what's your problem with QHash? Hash tables are designed too have collisions from time to time. My problem here is that I have a cache [string, screen width] -> [points where to break the string] In the example file submitted by S

Re: [PATCH] Semantic Linefeeds

2022-11-09 Thread Jean-Marc Lasgouttes
Le 08/11/2022 à 20:46, Pavel Sanda a écrit : On Sat, Nov 05, 2022 at 12:12:13PM -0400, Scott Kostyshak wrote: I know this change "shouldn't" matter when it comes to loading/storing of .lyx file - but given the severe consequences in case we overlooked something perhaps we should add fileformat i

Re: [LyX/2.3.x] Fix configure script with autoconf 2.71

2022-11-09 Thread Jean-Marc Lasgouttes
Le 08/11/2022 à 23:06, Jean-Marc Lasgouttes a écrit : commit 9fc89762ee731daa36092c598028e0b95afc69f2 Author: Jean-Marc Lasgouttes Date: Fri Jun 24 13:27:55 2022 +0200 Fix configure script with autoconf 2.71 Not a backport, but related to e4416535. Pushing this was not inten

Warning in master in C++11 mode

2022-11-09 Thread Jean-Marc Lasgouttes
Hi, I get this warning when compiling in C++11 mode : ../../master/src/insets/InsetIndex.cpp: In member function ‘virtual void lyx::InsetIndex::docbook(lyx::XMLStream&, const lyx::OutputParams&) const’: ../../master/src/insets/InsetIndex.cpp:376:6: warning: init-statement in selection statemen