Is there a way to force lualatex to insert a single space that is not no-breaking?
Why I ask:
In my documents I have to refer to certain standards, program names or other oddities quite regularly. Rather than typing their names over and over again (which can be lengthy at times) I have tried to find an alternative solution. (Sadly I have not used the glossary package which would probably have been better at the time.)
My solution was to simply define new commands for each e.g. program name. For example:
\newcommand{\IDA}{IDA ICE 4.5}
The problem is that I will now have to enter a ~ after each use of \IDA. This is needed as ... \IDA is used ... would be printed as ... IDA ICE 4.5is used ... rather than the correct ... IDA ICE 4.5 is used ....
This works fine (lucky me) for all bot one instance where the attached word sticks out at the right edge of the paragraph.
Is there a way to force lualatex to insert a single space that is not no-breaking?
\newcommand{\IDA}{IDA ICE 4.5~}? (more elaborate things can be done with the xspace package). – Ulrike Fischer Nov 11 '14 at 13:40\newcommand{\IDA}{IDA ICE 4.5 }if it is always followed by a space, or if not do not follow the macro by~but by\or{}\IDA{}will have a normal soace after it – David Carlisle Nov 11 '14 at 13:45.right after the text. – MatoBehr Nov 11 '14 at 14:03,or.following the \DIA at times. Using{}instead of~does however seem to be exactly what I needed! Thanks. – MatoBehr Nov 11 '14 at 14:09\xspace– egreg Nov 11 '14 at 15:55