summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/block/block.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/block/block.sty
Initial commit
Diffstat (limited to 'macros/latex/contrib/block/block.sty')
-rw-r--r--macros/latex/contrib/block/block.sty33
1 files changed, 33 insertions, 0 deletions
diff --git a/macros/latex/contrib/block/block.sty b/macros/latex/contrib/block/block.sty
new file mode 100644
index 0000000000..ab1b7ecf6f
--- /dev/null
+++ b/macros/latex/contrib/block/block.sty
@@ -0,0 +1,33 @@
+\NeedsTeXFormat{LaTeX2e}[1996/06/01] \NeedsTeXFormat{LaTeX2e}
+
+\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress
+ \thispagestyle{firstpage}%
+ {%\raggedleft
+ \@date\par}%
+ \else % home address
+ \thispagestyle{empty}%
+ {%\raggedleft\begin{tabular}{l@{}}\ignorespaces
+ \fromaddress \\*[2\parskip]%
+ \@date %\end{tabular}
+ \par}%
+ \fi
+ \vspace{2\parskip}%
+ {\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}
+ {\raggedright
+ \ignorespaces #1\\[6\medskipamount]%
+ \ifx\@empty\fromsig
+ \fromname
+ \else \fromsig \fi\strut}%
+ \par}
+\endinput
+%%
+%% End of file `block.sty'.