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

Thicker \hrulefill: HOW?

1,561 views
Skip to first unread message

Sebastian Brandt

unread,
Jul 26, 2001, 7:39:19 AM7/26/01
to
Dear TeX-experts,

please help me with a hopefully small problem. I would like the
TeX-command

\hrulefill

to produce thicker lines. As to my knowledge, there is no appropriate
lenght or parameter for this purpose. Any idea on how this can be done is
appreciated.

Thank you for your ideas,
Sebastian.

Sebastian Brandt

unread,
Jul 26, 2001, 7:51:08 AM7/26/01
to

I read a little in the TeXbook to solve my problem. I came up with the
idea of defining

\def\varrulefill#1{\leaders\hrule height#1\hfill}

Would that be the ``canonical'' way to a solution?

Lee Rudolph

unread,
Jul 26, 2001, 8:00:54 AM7/26/01
to
Sebastian Brandt <aris...@higgins.informatik.rwth-aachen.de> writes:

>please help me with a hopefully small problem. I would like the
>TeX-command
>
> \hrulefill
>
>to produce thicker lines. As to my knowledge, there is no appropriate
>lenght or parameter for this purpose. Any idea on how this can be done is
>appreciated.

\hrulefill is a macro which expands to \leaders\hrule\hfill
(as you can learn either from consulting the index of the TeXbook
or searching for "\hrulefill" in the plain.tex file on your
computer). Since (as you suggest you know) \hrule does take
parameters (namely, in this case, height and depth) when you
care to pass them, I think you're all set.

Lee Rudolph

Oscar Lazzarino

unread,
Jul 26, 2001, 8:04:28 AM7/26/01
to
Sebastian Brandt wrote:
>
> I read a little in the TeXbook to solve my problem. I came up with the
> idea of defining
>
> \def\varrulefill#1{\leaders\hrule height#1\hfill}

I would have used

\def\verrulefill#1{\leaders\hrule width 0pt height#1\hfill}

otherwise you would get the stuff on the right badly aligned.

Oscar Lazzarino

Jules Bean

unread,
Jul 26, 2001, 8:07:49 AM7/26/01
to

??

Why does this work?

I thought \hrule width 0pt was invisible?

Jules

Jules Bean

unread,
Jul 26, 2001, 8:05:45 AM7/26/01
to
Sebastian Brandt wrote:
>
> Dear TeX-experts,
>
> please help me with a hopefully small problem. I would like the
> TeX-command
>
> \hrulefill
>
> to produce thicker lines. As to my knowledge, there is no appropriate
> lenght or parameter for this purpose. Any idea on how this can be done is
> appreciated.

Simply modify the definition of \hrulefill. Or, rather, produce
something like it.

(TeXbook, p357)

\def\hrulefill{\leaders\hrule\hfill}

You want

\def\hrulefillthicker{\leaders\hrule height 2pt\hfill}

or possibly

\def\hrulefillvar#1{\leaders\hrule height #1\hfill}

so you can type

\hrulefillvar{3pt}

A 'normal' \hrule is height 0.4pt, for comparison.

Jules

Oscar Lazzarino

unread,
Jul 26, 2001, 8:10:40 AM7/26/01
to
Oscar Lazzarino wrote:
> I would have used
> \def\verrulefill#1{\leaders\hrule width 0pt height#1\hfill}
> otherwise you would get the stuff on the right badly aligned.

Oooops, sorry, this is not true. Something else was broken.

Oscar

0 new messages