Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

underline a paragraph?

1,431 views
Skip to first unread message

Long Duan

unread,
Jun 3, 1997, 3:00:00 AM6/3/97
to

Hello,

I am having a problem using latex.
Basically, I want to underline a part of my text in latex.
The difficulty I have is that the text is very long (longer
than page width), and I cannot use "\underline" because
I will not have line break.

Is there any other way to solve the ploblem?

Thanks for your help.
--
========================================
Long L. Duan
Department of Electrical Engineering
Washington University
Email: l...@ee.wustl.edu
Tel: (314)935-7548
========================================

Manfred Moser

unread,
Jun 4, 1997, 3:00:00 AM6/4/97
to

Long Duan wrote:
>
> Hello,
>
> I am having a problem using latex.
> Basically, I want to underline a part of my text in latex.
> The difficulty I have is that the text is very long (longer
> than page width), and I cannot use "\underline" because
> I will not have line break.

That's good since it prevent you from doing it. Use \emph or \textbf or
maybe put it in a box or whatever, but do NOT underline a whole
paragraph. Very bad style.

Manfred

------------------------------------------------------------------
MANFRED MOSER - International Exchange Student

from the Technical University Graz in Austria
at the Royale Melbourne Institute of Technolgy
Department of Applied Physics - Radiation Group
Email: man...@bunyip.ph.rmit.edu.au
or man...@sbox.tu-graz.ac.at
------------------------------------------------------------------

Peter Flynn

unread,
Jun 4, 1997, 3:00:00 AM6/4/97
to Long Duan

Long Duan wrote:
>
> Hello,
>
> I am having a problem using latex.
> Basically, I want to underline a part of my text in latex.
> The difficulty I have is that the text is very long (longer
> than page width), and I cannot use "\underline" because
> I will not have line break.

Underlining is something you do with typewriters. It's not much
used in fine typography, so TeX doesn't really cater for it.
Unless you really really need it for some very specific purpose
such as showing people what underlining looks like, or if it is
a (old-fashioned) requirement of a thesis style, it's a really
good idea to examine other ways of emphasising text, such as
using a different font or style.

> Is there any other way to solve the ploblem?

If you really do have to underline, there is a LaTeX style file
around somewhere to kludge through it for whole sentences or
paragraphs, but I'm not a LaTeX user, so I'll let someone else
say what and where.

A quick and dirty route is to set the paragraph without underlining,
find where the linebreaks occur, and then use something like

\begingroup\parskip=0pt\parfillskip=0pt\obeylines
\underscore{First line of text}
\underscore{second line of text etc}
\parfillskip=0pt plus1fil
\underscore{last short line.}
\par\endgroup

but I haven't tested that, so I don't know if the \parfillskip=0pt
will be honoured by the underscore routine: if it sets a \hbox then
probably not.

///Peter
--
Peter Flynn

Donald Arseneau

unread,
Jun 4, 1997, 3:00:00 AM6/4/97
to

In article <339474...@ee.wustl.edu>, Long Duan <l...@ee.wustl.edu> writes...

>Basically, I want to underline a part of my text in latex.

I hope you don't mean to underline a whole paragraph! In fact your
stated desire to underline more than a full line of text is terrible
already.

ulem.sty allows underlines that will break in a paragraph.

Donald Arseneau as...@reg.triumf.ca

Robin Fairbairns

unread,
Jun 5, 1997, 3:00:00 AM6/5/97
to

In article <33949A...@bunyip.ph.rmit.edu.au>,
Manfred Moser <man...@bunyip.ph.rmit.edu.au> wrote:

>Long Duan wrote:
>> I am having a problem using latex.
>> Basically, I want to underline a part of my text in latex.
>> The difficulty I have is that the text is very long (longer
>> than page width), and I cannot use "\underline" because
>> I will not have line break.
>
>That's good since it prevent you from doing it. Use \emph or \textbf or
>maybe put it in a box or whatever, but do NOT underline a whole
>paragraph. Very bad style.

However, if you're stuck on hideous-looking output (as are many people
who work in an environment where others use word processors), take a
look at CTAN macros/latex/contrib/other/misc/ulem.sty (documentation
at the end of the file). It converts the LaTeX emphasis commands (\em
and \emph) to use typewriter-style underlining. Lots of other
options, too.
--
Robin (Campaign for Real Radio 3) Fairbairns r...@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK
Home page: http://www.cl.cam.ac.uk/users/rf/robin.html

0 new messages