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

hrule inside enumerate environment?

92 views
Skip to first unread message

sfranky

unread,
Mar 29, 2010, 7:16:47 AM3/29/10
to
hello everyone!
does anyone know how I can change the length of the hrule to match the
new textwidth that comes with an enumerate environment?
thanks!
sotiris

Lars Madsen

unread,
Mar 29, 2010, 7:21:56 AM3/29/10
to


\rule{\linewidth}{0.4pt}

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
http://www.minimalbeispiel.de/mini-en.html

sfranky

unread,
Mar 29, 2010, 7:29:06 AM3/29/10
to
oh, right! sorry, I assumed there must be a constant for that, as
there is one e.g. for textwidth.. but I want an hrule, not a rule and
I can't use this in the context I did.. The full command I am using is
{\color{lightgray}\hrule height 1.5pt}

and putting linewidth 0.4pt inside there doesn't seem to work!
thanks again..

On Mar 29, 2:21 pm, Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:
>
>   \rule{\linewidth}{0.4pt}
>

sfranky

unread,
Mar 29, 2010, 7:30:23 AM3/29/10
to
nevermind i guess I should RTFM for that !!
thanks!

sfranky

unread,
Mar 29, 2010, 7:37:01 AM3/29/10
to
On Mar 29, 2:30 pm, sfranky <sfra...@gmail.com> wrote:
> nevermind i guess I should RTFM for that !!
> thanks!

hahah!! I just realized what you wrote actually does !!!!!!!!!!!!
duuuh !!

Donald Arseneau

unread,
Mar 30, 2010, 3:56:52 AM3/30/10
to
On Mar 29, 4:29 am, sfranky <sfra...@gmail.com> wrote:
> oh, right! sorry, I assumed there must be a constant for that, as
> there is one e.g. for textwidth..

Yes, it is \linewidth. (As you seem to have realized.)

> but I want an hrule, not a rule

> {\color{lightgray}\hrule height 1.5pt}

If you insist on using \hrule instead of \rule, then there is

\hrule height 1.5pt width \linewidth

However, there is no way to align with the indented list using
\hrule, so you should use \rule. Beware that \hrule suppresses
interline skips, so you get different positioning with \rule. The
result with \rule is usually better though, but perhaps requiring
some negative skips

\item I want an hrule, not a rule\\[-1.1ex]
\textcolor{lightgray}{\rule {\linewidth}{1.5pt}}\\


0 new messages