Le 20/04/2016 22:45, GNU Support a écrit :
Is there any other manner to replace variables, like company names,
names or addresses in a LyX document? If yes, I am interested to know
how.
Otherwise, I have to give LyX to multiple people to work for me and to
explain to them to take care of the space after variable replacement. It
makes no sense to teach someone the undocumented un-feature.
A solution is to use the package xspace. Like in
\usepackage{xspace}
\newcommand{myvar}{Value\xspace}
Then, when you use the macro \myvar, the spaces after it will be respected.
JMarc