[texhax] raiseboxing \hrulefill in multicolumn{}

Lincoln Turner l.turner at physics.unimelb.edu.au
Mon Aug 23 14:13:02 CEST 2004


Hello,

I've got a large table with a lot of column-spanning (\multicolumn)
entries. I want to make it clear when a short-ish entry spans several
columns by ruling a centred horizontal line either side of the centred
entry.

The code:

... & \multicolumn{4}{c}{\hrulefill Something \hrulefill} & ...

does this quite well, the only problem is that the rule is sitting on
the baseline. I'd like the rule to be centred, say at half the
x-height. The problem is that no amount of \raisebox{}ing seems to help
here as all the box commands want a definite width, not a rubber one! On
the other hand, the basic TeX commands don't seem to play nicely with
rubber lengths. 

I'm using tabularx so I don't know the exact column-widths, and it's
clear that tex can do the maths, it's just the rule is a few points too
low. 

Thanks for any help!

Lincoln

School of Physics         Work: (61 3) 8344 8974
University of Melbourne   Home: (61 3) 9388 8751
VIC 3010                  Mobl: 0402 894 786
Australia                 Fax:  03 9347 4783  GPG:57C7D312



More information about the texhax mailing list