For the record, I've spent about five hours endlessly looking here and elsewhere on the Internet, looking for an answer.
I'm relatively new to using LaTeX and am trying to create right aligned text that is underlined, but the underline spans the entire length of the line. I've spent several hours on this and this is the closest I've gotten
To demonstrate the problem I've run into, I created this example:
%%%%%%%%%%Begin example%%%%%%%%%%
\usepackage{ulem}
%This creates a dashed underline
\dashuline{This is a test}
%This right align our dashed underlined text
\raggedleft\dashuline{This is a test}
%This creates a dashed underline that spans the entire line
\dashuline{This is a test\hspace*{\fill}}
%This should create a dash underline that spans the entire line and right aligns our text,
%but the text ends up left aligned. Why is this?
\raggedleft\dashuline{This is a test\hspace*{\fill}}
%%%%%%%%%%%End example%%%%%%%%%%%%%%
As far as I can tell, something to do with the \hspace*{\fill} is causing this, since everything works just fine, sans underlining the entire line. Is there a way to fix this or another way to accomplish this that will work?
