Skip to content

Commit

Permalink
Add option to invert address alignment
Browse files Browse the repository at this point in the history
In response to #21, this allows alignment of to/from addresses to be
swapped.
  • Loading branch information
aaronwolen committed Nov 8, 2017
1 parent 6d08871 commit 8187ee4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions template-letter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,24 @@
\fi
$endif$

$if(invert-address)$
\makeatletter
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
\thispagestyle{firstpage}%
\else % home address
\thispagestyle{empty}%
{\raggedright\begin{tabular}{l@{}}\ignorespaces
\fromaddress \\*[2\parskip]%
\end{tabular}\par}%
\fi
\vspace{2\parskip}%
{\raggedleft \toname \\ \toaddress \\*[2\parskip]%
\@date \par}%
\vspace{2\parskip}%
#1\par\nobreak}
\makeatother
$endif$

\address{$for(return-address)$$return-address$$sep$\\$endfor$}

$if(blockquote)$
Expand Down

0 comments on commit 8187ee4

Please sign in to comment.