Take the 2-minute tour ×
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 want to place a line or a bracket over a big text (of two or more lines length) and preferably preventing the hyphenation of this text. Is it possible?

share|improve this question
Perhaps you should also describe what you want to achieve, not how you want to achieve it. XY Problem –  Andrey Vihrov Feb 20 '12 at 9:37

1 Answer 1

Probably you want to use math mode to get the stretchy bracket then flip back to text

 $\overbrace{\parbox[c]{0.5\textwidth}{some text here}}$
share|improve this answer
to remove hyphenation, put \hyphenpenalty=15000 and \pretolerance=10000 at the beginning of some text, as suggested here at StackOverflow –  yo' Feb 20 '12 at 11:00
yes or perhaps more commonly if you don't want hyphenation, just add \raggedright which will mean that TeX will prefer to leave the line short rather than hyphenate, unless it is really desperate. –  David Carlisle Feb 20 '12 at 11:02
I believe that it would look wrong with the overbrace. Maybe \centering? But again, this depends on the purpose of the OP, which he has not mentioned. –  yo' Feb 20 '12 at 14:04
on \raggedright` yes it would look better done with \begin{tabular}{l}` rather than \parbox then the box would have the natural width of the longest line, and the brace would just span that, assuming manual line breaking is acceptable.... –  David Carlisle Feb 20 '12 at 14:20
I will try to illustrate my question with an example: Let us suppose we have a normal text. And another text(2 1/3 lines length) exactly next to it(no new par or new line) . How could I put a line (or bracket or ...e.t.c) only over the second part of text and at the same protecting hyphenation? –  kornaros Feb 20 '12 at 14:32

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.