Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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".

share|improve this question

1 Answer 1

up vote 11 down vote accepted
share|improve this answer
Excellent, I've just checked, and this has the desired results. – Lover of Structure Feb 8 '13 at 9:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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