I often use \slash to allow for linebreak after the slash. However I found that \slash doesn't allow for hyphenation of the word to its right, while it does for the word on its left. How do I use \slash in a way (this can be a different macro, if necessary) that hyphenation points on both sides are preserved?



\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction

\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction

\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction

\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction

\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction

\noindent qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq addition\slash{}subtraction


In this example, the last line hyphenates after "ad-", the line before linebreaks after the slash, and none of the previous lines hyphenate "subtraction".

  • Excellent, I've just checked, and this has the desired results. Feb 8 '13 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.