3

I would like to combine the following four line into one command:

\tolerance=9999
\emergencystretch=10pt
\hyphenpenalty=10000
\exhyphenpenalty=100

My new command name should be myhyp.

How could I do that?

1 Answer 1

3
\newcommand{\myhyp}{%
  \tolerance=9999
  \emergencystretch=10pt
  \hyphenpenalty=10000
  \exhyphenpenalty=100
}

Note that the only need for such a command would be to set multiple times, or something that may change based on the scope. Otherwise, setting the individual elements once would be sufficient.

1
  • I would like to use it multiple times.
    – mala97
    Dec 25, 2022 at 0:45

You must log in to answer this question.

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