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-
ternos
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.
Ideas?
\mbox{...}
, and that's that.torque
andtorques
if Spanish or Portuguese hyphenation rules are in effect. In English, though, these two words should not be hyphenated.\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).