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

Width of \hrule

4,475 views
Skip to first unread message

Andi

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
I want to modify the drawing width of \hrule (I want it bolder).

Any ideas?

Thanks,

Andi

Heiko Oberdiek

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Andi <an...@muc.cyberways.net> wrote:

>I want to modify the drawing width of \hrule (I want it bolder).

\hrule width 100mm height 10mm depth 0mm

Yours sincerely
Heiko <ober...@ruf.uni-freiburg.de>

Donald Arseneau

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Heiko Oberdiek <ober...@ruf.uni-freiburg.de> writes:

> Andi <an...@muc.cyberways.net> wrote:
>
> >I want to modify the drawing width of \hrule (I want it bolder).
>
> \hrule width 100mm height 10mm depth 0mm

Furthermore

\let\hruleptFour\hrule
\def\hrule{\hruleptFour height 1pt}

Test
\hrule
test
\hrule height .3pt

Donald Arseneau as...@triumf.ca

Floyd Davidson

unread,
Mar 31, 2000, 3:00:00 AM3/31/00
to
Andi <an...@muc.cyberways.net> wrote:
>I want to modify the drawing width of \hrule (I want it bolder).

An \hrule or a \vrule commands can be given with three arguments,
and defaults will be supplied if no argument is given.

\hrule height hh width ww depth dd
\vrule height hh width ww depth dd

Where each if hh, ww, and dd is a dimension.

The defaults for an \hrule are 0.4pt for the height, 0t for the
depth, and the width will extend to the size of the inner most
box or alignment which contains the rule. An \hrule must be in
vertical mode.

The defaults for a \vrule are 0.4pt for the width, and if no
height or depth is specified it will extend to the size of the
inner most box or alignment which contains the rule. The \vrule
command is legal only in horizontal mode.

To visualize what height, depth and width are for an \hrule,
think of a starting point and draw a thin horizontal line for
the distance of the width value given. Then fill in the line
by making it thicker below that line by the value of depth, and
above that line by the value of height.


|<-------- width of \hrule --------->|

v
--- h************************************x
h************************************x
height h************************************x
h************************************x
--- O------------------------------------x <=== baseline
depth d====================================x
--- d====================================x
^

where O is the point of origin.

Hence if you just use \rule with no arguments it will likely
be as wide as \hsize, and will be the 0.4pt above the baseline
but will have no depth below the baseline. The significance of
using either height or depth to determine the thickness of the
line isn't immediately obvious, but think about where the lines
will join at the corners if you draw a box. It is possible
to use depth for the top line and height for the bottom line,
for example, and in that way have the vertical lines exactly
meet the edges of the horizontal lines without leaving an
open wedge at each corner.

For vertical lines height determines where the upward vertical
line ends and depth detemines where the downward vertical line
ends. Width is the thickness of the line extending to the right.

|<- width of \vrule->|


--- h********************x
h********************x
h********************x
h********************x
h********************x
h********************x
h********************x
height h********************x
h********************x
h********************x
h********************x
h********************x
h********************x
--- O--------------------x <=== baseline
depth d====================x
--- d====================x


Floyd

--
Floyd L. Davidson fl...@barrow.com
Ukpeagvik (Barrow, Alaska)

0 new messages