# create a non breaking environment [duplicate]

Possible Duplicate:
How to prevent LaTeX from line-breaking a phrase?

I add names of persons into an index. How can I prevent that there will be a line brake in the name?

\newcommand*{\person}[1]{#1\sindex[person]{#1}}


It would be nice if there is another solution then writing ~ in all names manually.

## marked as duplicate by Mensch, lockstep, Stephan Lehmke, Werner, Paul GaboritDec 13 '12 at 22:25

• \hbox{#1} perhaps? – JLDiaz Dec 13 '12 at 21:32