Re: Allow space at beginning of (some?) insets

2023-06-12 Thread Jean-Marc Lasgouttes

Le 10/06/2023 à 19:06, Daniel a écrit :

On 2023-06-07 16:16, Jean-Marc Lasgouttes wrote:
Personally, I add the space before the branch. But I can see that it 
is mildly annoying.


I am probably missing something here but I don't see how that is 
possible at the end of the sentence as in Scott's examples. Wouldn't you 
end up with a superfluous space before the period when deactivating the 
branch? Or what kind of spaces are you using?


Indeed, I use that in section titles where I have no period at the end 
(for exercises with answers hidden in a branch).


JMarc

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-12 Thread Jean-Marc Lasgouttes

Le 12/06/2023 à 06:34, Daniel a écrit :

On 2023-06-11 18:57, Richard Kimberly Heck wrote:

On 6/10/23 13:06, Daniel wrote:

On 2023-06-07 16:16, Jean-Marc Lasgouttes wrote:

Le 01/06/2023 à 17:42, Scott Kostyshak a écrit :
I come across the example in the attachment often in various forms. 
It would be nice if I could insert a space at the beginning of an 
inset.


Personally, I add the space before the branch. But I can see that it 
is mildly annoying.


I am probably missing something here but I don't see how that is 
possible at the end of the sentence as in Scott's examples. Wouldn't 
you end up with a superfluous space before the period when 
deactivating the branch? Or what kind of spaces are you using?


My solution is to add a protected space at the start of the inset. 
With text insets, you can modify them to accept 'free spacing', if you 
wish.


Riki


I was just wondering how the space "before the branch" is working.

As to the possibilities you mention: wouldn't it nice if LyX allowed to 
insert a space at the beginning in those insets where it makes a 
difference without going all the way to allow free spacing?


How easy is it to define "where it makes a difference"? Will people 
guess by themselves why it works here and not there?


I mean, I can understand why inserting spaces at the beginning of some 
insets does not make sense, e.g. footnotes, because leading spaces are 
just swallowed there. But "free spacing" in branches seems to give the 
wrong impression that multiple spaces are honored, right?


In general, freespacing is used when spaces are honored.

By the way, why is there an indentation at the beginning of the branch 
inset? Doesn't that give the wrong impression of some spacing? Shouldn't 
the first paragraph in a branch inset behave like the first paragraph in 
a section, i.e. not be indented, and then only the next paragraph be 
indented?


This is the subject of
https://www.lyx.org/trac/ticket/12419

JMarc

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-11 Thread Daniel

On 2023-06-11 18:57, Richard Kimberly Heck wrote:

On 6/10/23 13:06, Daniel wrote:

On 2023-06-07 16:16, Jean-Marc Lasgouttes wrote:

Le 01/06/2023 à 17:42, Scott Kostyshak a écrit :
I come across the example in the attachment often in various forms. 
It would be nice if I could insert a space at the beginning of an 
inset.


Personally, I add the space before the branch. But I can see that it 
is mildly annoying.


I am probably missing something here but I don't see how that is 
possible at the end of the sentence as in Scott's examples. Wouldn't 
you end up with a superfluous space before the period when 
deactivating the branch? Or what kind of spaces are you using?


My solution is to add a protected space at the start of the inset. With 
text insets, you can modify them to accept 'free spacing', if you wish.


Riki


I was just wondering how the space "before the branch" is working.

As to the possibilities you mention: wouldn't it nice if LyX allowed to 
insert a space at the beginning in those insets where it makes a 
difference without going all the way to allow free spacing?


I mean, I can understand why inserting spaces at the beginning of some 
insets does not make sense, e.g. footnotes, because leading spaces are 
just swallowed there. But "free spacing" in branches seems to give the 
wrong impression that multiple spaces are honored, right?


By the way, why is there an indentation at the beginning of the branch 
inset? Doesn't that give the wrong impression of some spacing? Shouldn't 
the first paragraph in a branch inset behave like the first paragraph in 
a section, i.e. not be indented, and then only the next paragraph be 
indented?


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-11 Thread Richard Kimberly Heck

On 6/10/23 13:06, Daniel wrote:

On 2023-06-07 16:16, Jean-Marc Lasgouttes wrote:

Le 01/06/2023 à 17:42, Scott Kostyshak a écrit :
I come across the example in the attachment often in various forms. 
It would be nice if I could insert a space at the beginning of an 
inset.


Personally, I add the space before the branch. But I can see that it 
is mildly annoying.


I am probably missing something here but I don't see how that is 
possible at the end of the sentence as in Scott's examples. Wouldn't 
you end up with a superfluous space before the period when 
deactivating the branch? Or what kind of spaces are you using?


My solution is to add a protected space at the start of the inset. With 
text insets, you can modify them to accept 'free spacing', if you wish.


Riki


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-10 Thread Daniel

On 2023-06-07 16:16, Jean-Marc Lasgouttes wrote:

Le 01/06/2023 à 17:42, Scott Kostyshak a écrit :
I come across the example in the attachment often in various forms. It 
would be nice if I could insert a space at the beginning of an inset.


Personally, I add the space before the branch. But I can see that it is 
mildly annoying.


JMarc


I am probably missing something here but I don't see how that is 
possible at the end of the sentence as in Scott's examples. Wouldn't you 
end up with a superfluous space before the period when deactivating the 
branch? Or what kind of spaces are you using?


Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-07 Thread Jean-Marc Lasgouttes

Le 01/06/2023 à 17:42, Scott Kostyshak a écrit :

I come across the example in the attachment often in various forms. It would be 
nice if I could insert a space at the beginning of an inset.


Personally, I add the space before the branch. But I can see that it is 
mildly annoying.


JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-01 Thread Scott Kostyshak
On Thu, Jun 01, 2023 at 11:54:14AM -0400, Paul A. Rubin wrote:
> 
> On 6/1/23 11:42, Scott Kostyshak wrote:
> > I come across the example in the attachment often in various forms. It 
> > would be nice if I could insert a space at the beginning of an inset.
> > 
> > Am I missing a more natural workaround than the ones shown in the example?
> > 
> > Scott
> > 
> Would Insert > Formatting > Interword space (space-insert normal, bound to
> Ctrl+Alt+Space in cua.bind) be "more natural"?

Thanks Paul! I think you're right, that's better than the non-breaking space. 
On the other hand, it is 3 keys to press instead of 2 :) (just kidding of 
course, I can make my own binding).

Scott


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: Allow space at beginning of (some?) insets

2023-06-01 Thread Paul A. Rubin

On 6/1/23 11:42, Scott Kostyshak wrote:

I come across the example in the attachment often in various forms. It would be 
nice if I could insert a space at the beginning of an inset.

Am I missing a more natural workaround than the ones shown in the example?

Scott

Would Insert > Formatting > Interword space (space-insert normal, bound 
to Ctrl+Alt+Space in cua.bind) be "more natural"?


Paul

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Allow space at beginning of (some?) insets

2023-06-01 Thread Scott Kostyshak
I come across the example in the attachment often in various forms. It would be 
nice if I could insert a space at the beginning of an inset.

Am I missing a more natural workaround than the ones shown in the example?

Scott


example.lyx
Description: application/lyx


signature.asc
Description: PGP signature
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel