I'm currently typesetting a test using the exam class and the test consists of some True or False statements. Some statements span a couple of lines, but some could fit in a single line, except for the last word, which is hyphenated, like so:

O momento angular de um sistema pode mudar sem a ação de torques ex-

I know I can make hyphenations by using tor\-que, but I would like to know if there is an opposite that works locally, i.e., not adding \hyphenation{torque} to the preamble because I may want this word hyphanated at some other point.

I know that \mbox{…} does the trick, but I'm not sure if it's a kludge and there's a better solution, specially without extra packages.


  • 11
    Use \mbox{...}, and that's that.
    – Werner
    Jun 2, 2014 at 4:02
  • Have you -- or a package you've loaded -- maybe set up some extra hyphenation patterns? For instance, it may be OK to hyphenate torque and torques if Spanish or Portuguese hyphenation rules are in effect. In English, though, these two words should not be hyphenated.
    – Mico
    Jun 2, 2014 at 4:41
  • To be precise, the text is in portuguese and the hyphenated word is "externos" I edited the question to reflect this. Jun 2, 2014 at 5:50
  • 4
    \mbox is defined in LaTeX kernel as \long\def\mbox#1{\leavevmode\hbox{#1}} (better definition is \def\mbox{\leavevmode\hbox} but LaTeX kernel doesn't include the best definitions at many places). So you needn't any special packages. There is no better solution for protection of hyphenation of the word than \hyphenation{word} (globally for actual \language) or \hbox{word} (locally).
    – wipet
    Jun 2, 2014 at 6:40
  • 1
    @wipet no, that would be a worse definition. The LaTeX definition is intentional. Jun 2, 2014 at 19:49

1 Answer 1


The package hyphenat provides a command \nohyphens{}, so that

O momento angular de um sistema pode mudar sem a ação de torques \nohyphens{externos}

should do the trick.

\nohyphens should be used for short parts of text. You should perhaps encapsulate the whole answer (statement?) in \nohyphens{}, but that depends on your content.

  • That's a nice solution, but I was curious about solutions requiring noa dittional packages. Jun 5, 2014 at 17:29
  • 1
    ack, I just documented this solution for everybody else coming up with such a problem, finding this question and not having to hassle with "don't use no additional packages" due to artificial external restrictions. Jun 11, 2014 at 13:26
  • Good point. This site is for the community after all. Jun 11, 2014 at 17:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .