Search code examples
latexalignmentletter

Latex letter: Address right aligned


I am using Latex letter class, and would like the address to be right justified.

The default is for it to be in a right aligned block, justified to the left. I am happy to change the letter.cls file, but haven't been able to figure out the right way to do it.

I have tried using sclttr2 instead but there are too many variables for me.

Thanks!


Solution

  • Left-aligned text in the right-aligned block

    {
    \leftskip = .7\hsize
    \obeylines
    
    
    Address:
    12, International st., 
    city
    
    }
    

    Right-aligned text in the right-aligned block

    {
    \leftskip = 0pt plus 1 fill
    \rightskip = 0pt
    \parindent 0pt
    \obeylines
    
    
    Address:
    12, International st., 
    city
    
    }