I hope the explanation will be clear: I have a table with 4 rows, and one of the columns there is a value that is identical in all rows. I want instead of copying it 4 times for each row, just put it in the middle (between the 2nd and 3rd row) and have two vertical lines stretching above and below it up to to the 1st row and 4th row.
I managed to put the number using multirow
in the middle, but I don't know how to draw the two vertical lines. Any ideas?
EDIT: I want the vertical lines to stretch from the middle above the number — up and one from the middle below the number down.
Best Answer
An overkill TikZ solution; the common value is vertically centered as required:
In a comment, JLDiaz has proposed the following simplification not requiring the use of
\multirow
and drawing the line with the value in a single step: