summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/simurgh/simurgh-extletter.sty
blob: d55df189ad037d7d8e2f6d2772ac045b4d2e5e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simurgh-extletter}[2013/09/18 v0.01a changes to `extletter.cls']
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
  \thispagestyle{firstpage}%
    {\simurgh@raggedleft\@date\par}%
  \else  % home address
    \thispagestyle{empty}%
    {\simurgh@raggedleft\if@RTL\begin{tabular}{r@{}}\else\begin{tabular}{l@{}}\fi\ignorespaces
      \fromaddress \\*[2\parskip]%
      \@date \end{tabular}\par}%
  \fi
  \vspace{2\parskip}%
  {\simurgh@raggedright \toname \\ \toaddress \par}%
  \vspace{2\parskip}%
  #1\par\nobreak}
\renewcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
  \stopbreaks
  \noindent
  \ifx\@empty\fromaddress\else
  \hspace*{\longindentation}\fi
  \parbox{\indentedwidth}{\simurgh@raggedright
       \ignorespaces #1\\[6\medskipamount]%
       \ifx\@empty\fromsig
           \fromname
       \else \fromsig \fi\strut}%
   \par}
\renewcommand\left@footnoterule{%
  \hbox dir TLT to \columnwidth
  {\vbox{%
  \kern-\p@
  \hrule \@width .4\columnwidth
  \kern .6\p@}\hfil}}
\renewcommand\right@footnoterule{%
  \hbox dir TRT to \columnwidth
  {\vbox{%
  \kern-\p@
  \hrule \@width .4\columnwidth
  \kern .6\p@}\hfil}}


\endinput