On 2016-04-20, bugs@gnu.support wrote: > Hello, > There is long standing bug in LyX that I managed to handle on my > side. That is when I insert TeX code with Control-L and anything > thereafter, even though there is a space, is not spaced.
This is not a bug but a TeX feature. Ctrl-L (evil red text) is treated as raw LaTeX - passed on to LaTeX as-is. It is up to the user to ensure this works as expeced (actually even if it works at all). LyX must not fiddle with this, as any well meaning "fix" will break behaviour for other use cases. > It looks something like: > \mycommand = One two three > And I insert into the LyX document: > [\mycommand] four five > and the result is: > one two threefour five > To cope with it, I have put space with Control-Space. But I should not > because there is always space after it. The recommended LaTeX-way to deal with this is to ensure that every LaTeX command is terminated by a pair of {}, either with arguments or empty. \mycommand{} four five Günter