I'm having some problems with lines that turn out to be too long. There are correct hyphenation rules for the word but they aren't being applied.
Let me first give the sentence that is too long:
An isomorphism that maps a graph to itself is called an \concept{automorphism}.
The command concept is defined as follows
\newcommand{\concept}[1]{\index{#1}\marginpar{\raggedright\textbf{#1}}\textbf{#1}}
The problem seems to be that words inside \concept aren't being hyphenated. How can I fix this? If I type
An isomorphism that maps a graph to itself is called an \textbf{automorphism}.
then the word is hyphenated perfectly. So I would now like to have the command \concept behave the same way, i.e. allow concepts to be hyphenated according to the standard rules.
\hspace{0pt}was needed in two places. – nvcleemp Sep 21 '11 at 12:56\textbf{#1}is typeset in the normal text, so there's no need to give a zero space there. – egreg Sep 21 '11 at 13:06\indexshould go after the word, just for that reason. – egreg Sep 21 '11 at 13:17\indexcommand. – egreg Sep 21 '11 at 14:46\indexcommand behind the\textbfcommand, but still the word isn't hyphenated except when I add\hspace{0pt}in front of it. So for know this is completely fixed for me, but it is surprising that without the\hspace{0pt}the word doesn't get hyphenated. – nvcleemp Sep 21 '11 at 16:01