summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/block
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
Initial commit
Diffstat (limited to 'macros/latex/contrib/block')
-rw-r--r--macros/latex/contrib/block/block.pdfbin0 -> 63967 bytes
-rw-r--r--macros/latex/contrib/block/block.sty33
-rw-r--r--macros/latex/contrib/block/block.tex17
3 files changed, 50 insertions, 0 deletions
diff --git a/macros/latex/contrib/block/block.pdf b/macros/latex/contrib/block/block.pdf
new file mode 100644
index 0000000000..8ec6f6f139
--- /dev/null
+++ b/macros/latex/contrib/block/block.pdf
Binary files differ
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'.
diff --git a/macros/latex/contrib/block/block.tex b/macros/latex/contrib/block/block.tex
new file mode 100644
index 0000000000..0b95ea85ab
--- /dev/null
+++ b/macros/latex/contrib/block/block.tex
@@ -0,0 +1,17 @@
+\documentclass[DIV=7, pagesize=auto, version=last]{scrartcl}
+
+\addtokomafont{title}{\rmfamily}
+
+\title{The \textsf{block} package}
+\author{Chua Eng Huang}
+\date{1999/07/19}
+
+
+\begin{document}
+
+\maketitle
+
+\noindent
+\textsf{block.sty} is a style file for use with the \textsf{letter} class that overwrites the \verb+\opening+ and \verb+\closing+ macros so that letters can be styled with the block letter style instead of the default style. Thus, the return address, the closing, and the signature appear flushed on the left margin.
+
+\end{document}