I need an
\hrule which is right aligned and the size is exactly equal to the text above it.
And the same for text below it.
Is such a thing possible outside of LuaTeX? I am using XeTeX.
EDIT: For example:
Line:1 aaaaaa Line:2 ______ (hrule)
Line1: ______ (hrule) Line2: aaaaaa
By size I mean horizontal dimension.
I'm looking for how to get it to work with single line text but ultimately I'm looking for is pointers to the concept behind how
\hrule works so I don't have to come back again with a minor modification :)