Text FormattingA line over a big part of text (not in MATH mode)

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
kornaros
Posts: 40
Joined: Wed Nov 30, 2011 12:11 am

A line over a big part of text (not in MATH mode)

Post by kornaros »

I want to place a line or a bracket over or under a big text (of two or more lines length for example) and preferably respecting the hyphenation of this text. Is it possible? I tried \usepackage{ulem} but this does not respect hyphenation rules(no hyphenation at all!) Am I right? Any suggestions please? Charis

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

A line over a big part of text (not in MATH mode)

Post by kaiserkarl13 »

Does something like this work?

Code: Select all

\noindent\rule{\linewidth}{1pt}
\indent
Blah blah blah blah blah.
Blah blah blah blah blah.
Blah blah blah blah blah.
Blah blah blah blah blah.
Blah blah blah blah blah.
\\\rule{\linewidth}{1pt}
I'm not 100% certain what you want to do; this will put horizontal rules (1pt thick) at the top and bottom.
kornaros
Posts: 40
Joined: Wed Nov 30, 2011 12:11 am

Re: A line over a big part of text (not in MATH mode)

Post by kornaros »

This is not what I am talking about. An example to illustrate myself: I want an \overbracket command(that RESPECT AND SAVE HYPHENATION RULES) so that to put a bracket over the inside big text here! of the following example

this is a text this is another text and here is an \overbracket{ the inside big text here!} and the text continues ...
Post Reply