Den 20. april 2016 21:45, skrev GNU Support:
Hello,
maybe it should be a space if it is space. Space is a character just as
any other character. Imagine if LyX would not show the characte "a"
after tex command. The space is AFTER the tex command and not WITHIN the
tex command.
Not entirely correct. "space" is a character in ascii/unicode. It is not
a character in LyX. In LyX, a space is a "word separator". If you type a
character like «a», then you expect a standard sized «a». But in
justified text, the width of a space varies. A space that happens to be
where the line is broken, gets zero width. (And as some has mentioned,
you can type several a's in a row, but not several spaces.)
This space bug, actually breaks the philosophy os WYSIWYM.
When you use TeX code, you augment your LyX document with TeX constructs
not yet supported natively in LyX. In that case you play by TeX rules,
which are different. TeX users should know what they do, or at least
accept the quirks of TeX. If you don't like that, don't use TeX — LyX
developers have no influence over TeX anyway.
I make space after tex command if I need it. And I don't get that what I
see and what I mean.
I see the problem, but you used TeX. TeX eats the space following a
command, it is one of the things TeX just do. There are of course other
forums if you want to try to change TeX itself. An alternative is to
make a more complicated TeX command, that doesn't eat up following
spaces. One way is to always have {} as the last two characters in your
red TeX box.
LyX could be reprogrammed to handle this case, but it might break many
other cases in more subtle ways. And it would definitely break the
assumptions made by people who came to LyX from the TeX world. For some,
LyX is a word processor that happens to use TeX. For others, LyX is
software that speeds up their LaTeX writing because they don't have to
spell out the most common LaTeX commands, such as \section{}
LyX tries to do "what you see is what you mean" when you stick to LyX
features only. When a TeX (power)user do some TeX magic, LyX tries to
"do what the TeX (power)user means". This includes not messing with the
expected effects and side effects of TeX commands.
Helge Hafting