| 1 |
% \iffalse |
| 2 |
%% File: fullblck.dtx Copyright 1998,1999 James H. Cloos, Jr. <[email protected]> |
| 3 |
% |
| 4 |
%<*preamble> |
| 5 |
% |
| 6 |
% (1) If you do not already have 'fullblck.ins' |
| 7 |
% run 'fullblck.dtx' through LaTeX to create it. |
| 8 |
% |
| 9 |
% Now run 'fullblck.ins' through (La)TeX to get the package. |
| 10 |
% |
| 11 |
% [Or use 'docstrip' and extract 'fullblck.sty' from 'fullblck.dtx' |
| 12 |
% using option 'package'] |
| 13 |
% |
| 14 |
% (2) Then run 'fullblck.dtx' three times thought LaTeX |
| 15 |
% to get the documentation 'fullblck.dvi'. |
| 16 |
% |
| 17 |
% |
| 18 |
% |
| 19 |
%%% ==================================================================== |
| 20 |
%%% @LaTeX-package-file{ |
| 21 |
%%% author = "James H. Cloos, Jr.", |
| 22 |
%%% version = "1.03", |
| 23 |
%%% date = "1999/May/25", |
| 24 |
%%% time = "22:30:00 UTC", |
| 25 |
%%% filename = "fullblck.dtx", |
| 26 |
%%% address = "James H. Cloos, Jr. |
| 27 |
%%% 6607 Brodie Ln #414 |
| 28 |
%%% Austin, TX 78745-4650 |
| 29 |
%%% US", |
| 30 |
%%% telephone = "+1 888.612.7791", |
| 31 |
%%% FAX = "+1 888.612.7791", |
| 32 |
%%% email = "[email protected]", |
| 33 |
%%% codetable = "ISO/ASCII", |
| 34 |
%%% keywords = "letter, fullblock", |
| 35 |
%%% supported = "yes", |
| 36 |
%%% abstract = "This package defines commands for using |
| 37 |
%%% standard SI units in all your texts. The |
| 38 |
%%% package provides different options for the |
| 39 |
%%% spacing of the units.", |
| 40 |
%%% docstring = "This is based heavily on LaTeX2e's letter.dtx, which is: |
| 41 |
%%% Copyright 1993 1994 1995 1996 1997 The LaTeX3 Project |
| 42 |
%%% and any individual authors listed in letter.dtx. |
| 43 |
%%% My modifications are Copyright 1998,1999 James H. Cloos, Jr. |
| 44 |
%%% All rights reserved.", |
| 45 |
%%% } |
| 46 |
%%% ==================================================================== |
| 47 |
% |
| 48 |
% |
| 49 |
% IMPORTANT COPYRIGHT NOTICE: |
| 50 |
% |
| 51 |
% This package is based on letter.dtx from LaTeX2e and may be used and |
| 52 |
% distributed under the same terms as LaTeX2e. |
| 53 |
% |
| 54 |
%</preamble> |
| 55 |
% |
| 56 |
% |
| 57 |
%<*batchfile> |
| 58 |
\begin{filecontents}{fullblck.ins} |
| 59 |
\def\batchfile{fullblck.ins} |
| 60 |
\input docstrip.tex |
| 61 |
\keepsilent |
| 62 |
\generate{\file{fullblck.sty}{\from{fullblck.dtx}{package}}} |
| 63 |
\endbatchfile |
| 64 |
\end{filecontents} |
| 65 |
%</batchfile> |
| 66 |
% |
| 67 |
%<*driver> |
| 68 |
\def\fileversion{1.03} |
| 69 |
\def\filedate{1999/May/25} |
| 70 |
\documentclass{ltxdoc} |
| 71 |
% |
| 72 |
\begin{document} |
| 73 |
\DocInput{fullblck.dtx} |
| 74 |
\end{document} |
| 75 |
%</driver> |
| 76 |
% \fi |
| 77 |
% |
| 78 |
% |
| 79 |
% \CheckSum{0} |
| 80 |
% \CharacterTable |
| 81 |
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 82 |
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 83 |
% Digits \0\1\2\3\4\5\6\7\8\9 |
| 84 |
% Exclamation \! Double quote \" Hash (number) \# |
| 85 |
% Dollar \$ Percent \% Ampersand \& |
| 86 |
% Acute accent \' Left paren \( Right paren \) |
| 87 |
% Asterisk \* Plus \+ Comma \, |
| 88 |
% Minus \- Point \. Solidus \/ |
| 89 |
% Colon \: Semicolon \; Less than \< |
| 90 |
% Equals \= Greater than \> Question mark \? |
| 91 |
% Commercial at \@ Left bracket \[ Backslash \\ |
| 92 |
% Right bracket \] Circumflex \^ Underscore \_ |
| 93 |
% Grave accent \` Left brace \{ Vertical bar \| |
| 94 |
% Right brace \} Tilde \~} |
| 95 |
% |
| 96 |
% |
| 97 |
% |
| 98 |
% \title{The \texttt{fullblck} package\thanks{This file |
| 99 |
% has version number \fileversion, last revised \filedate.}} |
| 100 |
% |
| 101 |
% \author{James H. Cloos, Jr.} |
| 102 |
% \date{1998/November/24} |
| 103 |
% \maketitle |
| 104 |
% |
| 105 |
% |
| 106 |
% \changes{v1.1}{1998/11/17}{Initial version.}% |
| 107 |
% \changes{v1.2}{1998/11/24}{Coverted to \textsc{dtx} file.}% |
| 108 |
% |
| 109 |
% \begin{abstract} |
| 110 |
% This article describes the \texttt{fullblck} package which modifies |
| 111 |
% the \texttt{letter} class to use a full block layout. |
| 112 |
% Specifically, this means that the return address, |
| 113 |
% date and closing will be set at the left margin. |
| 114 |
% \end{abstract} |
| 115 |
% |
| 116 |
% \section{Introduction} |
| 117 |
% In the US, there are three common layouts used for business letters. |
| 118 |
% \LaTeX2e's \texttt{letter} class implements the indented layout. |
| 119 |
% This package modifies |
| 120 |
% \LaTeX2e's \texttt{letter} class to set the letter in the fullblock |
| 121 |
% layout. No attempt is made to support the semi-block layout. |
| 122 |
% |
| 123 |
% |
| 124 |
% \section{How to use the package} |
| 125 |
% |
| 126 |
% Add \texttt{\char92usepackage\{fullblck\}} to the preamble of your letter. |
| 127 |
% No options are required or supported, and no new commands are defined. |
| 128 |
% |
| 129 |
% \section{The implementation} |
| 130 |
% |
| 131 |
% First, the basic boilerplate for a \textsc{sty} file: |
| 132 |
% |
| 133 |
% \begin{macrocode} |
| 134 |
%<*package> |
| 135 |
\NeedsTeXFormat{LaTeX2e}[1996/06/01] |
| 136 |
\ProvidesPackage{fullblck} |
| 137 |
[1998/11/17 v1.1 JHCloos FullBlock Style for Letters] |
| 138 |
% \end{macrocode} |
| 139 |
% |
| 140 |
% Now we set the \texttt{\char92longindentation} to zero; |
| 141 |
% this puts the closing at the left margin. |
| 142 |
% |
| 143 |
% \begin{macrocode} |
| 144 |
\longindentation=0pt% |
| 145 |
% \end{macrocode} |
| 146 |
% |
| 147 |
% Finally we redefine \texttt{\char92opening} to just dump the return |
| 148 |
% address and date at the left margin in \texttt{\char92raggedright} |
| 149 |
% mode. |
| 150 |
% |
| 151 |
% \begin{macrocode} |
| 152 |
\renewcommand*{\opening}[1]{\ifx\@empty\fromaddress |
| 153 |
\thispagestyle{firstpage}% |
| 154 |
{\raggedright\@date\par}% |
| 155 |
\else % home address |
| 156 |
\thispagestyle{empty}% |
| 157 |
{\raggedright\ignorespaces |
| 158 |
\fromaddress \\*[2\parskip]% |
| 159 |
\@date \par}% |
| 160 |
\fi |
| 161 |
\vspace{2\parskip}% |
| 162 |
{\raggedright \toname \\ \toaddress \par}% |
| 163 |
\vspace{2\parskip}% |
| 164 |
#1\par\nobreak} |
| 165 |
%</package> |
| 166 |
% \end{macrocode} |
| 167 |
% |
| 168 |
% |
| 169 |
% \Finale |
| 170 |
|