I am pretty new to LaTeX and I'm having some issues for creating a motivation letter. I have a nice structure in my mind, but I can't complete it fully.
Here's a live example: click. Everything looks fine, but the only issue I'm still having is that I want the \address{}
field contents to display aligned to the right, instead of being inside a block aligned to the right but contents aligned to the left.
I've searched for the solution but haven't come across anything working.
Best Answer
Here, I used a right-aligned
\Longstack
to accomplish it, but there were several quirks (EDITED to handle long and short name conditions):1) I had to place the stack in a right-aligned box of the same width as
\today
, to handle cases when the name was either longer than or shorter than the date;2) I had to explicitly set the
\Longstack
gap as 12pt, because\baselineskip
was zeroed inside of\address
.In the MWE below, you can uncomment the extended part of the name, to see that it works for long names, too.