I used tcolorbox to highlight text some text in paragraphs, it seems to work smoothly, but it disables text hyphenation, that the highlighted piece fo text cannot be start somwhere at one line and finish highlighting in the other. It is a problem.

The I tried soul-tikz approach. But the guys say that it is not pretty much extendable and that, for example, it is impossible to make rounded corners.

Thus, I am asking is there an approach to highlight text with a flexible box (that you can, for example, define rounded corners for it) but the text formatting is not affected by this highlighting (hyphenations, page breaks, ... work like there is no highlighting)?

Your Answer

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

Browse other questions tagged or ask your own question.