summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/plain
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-04 14:16:50 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2008-07-04 14:16:50 +0000
commiteb0ca0896a18ae41f243b3f096f2bb4737a8c2e2 (patch)
treee888952a01584e0e1baf628429a437922e6619cc /Master/texmf-dist/tex/plain
parent846eb2662596380d270e987384a1c636441999c5 (diff)
newsletr v01-016 22-Jan-2004
git-svn-id: svn://tug.org/texlive/trunk@9229 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/plain')
-rw-r--r--Master/texmf-dist/tex/plain/newsletr/italic.tex38
-rw-r--r--Master/texmf-dist/tex/plain/newsletr/lodriver.tex57
-rw-r--r--Master/texmf-dist/tex/plain/newsletr/newsletr.tex44
-rw-r--r--Master/texmf-dist/tex/plain/newsletr/quote.tex119
4 files changed, 28 insertions, 230 deletions
diff --git a/Master/texmf-dist/tex/plain/newsletr/italic.tex b/Master/texmf-dist/tex/plain/newsletr/italic.tex
deleted file mode 100644
index 6af739150aa..00000000000
--- a/Master/texmf-dist/tex/plain/newsletr/italic.tex
+++ /dev/null
@@ -1,38 +0,0 @@
-% Save file as: ITALIC.TEX Source: FILESERV@SHSU.BITNET
-%
-% File: ITALIC.TEX
-%
-% Author: Hunter Goatley
-% goathunter@WKUVX1.BITNET
-%
-% Date: August 21, 1991
-%
-% Abstract:
-%
-% The macros \ital and \slant are defined to typeset tex in italic
-% (\it) and slanted (\sl) fonts, automatically inserting the italic
-% correction (\/) if necessary. The correction is not inserted if
-% the token following the parameter is a period or a comma, as
-% suggested on page 14 of _The TeXbook_.
-%
-% Based on the \predict macro presented in _TeX for the Impatient_,
-% p. 233.
-%
-% These macros use \toks0 as a temporary.
-%
-% The \futurelet\it@next in \ital and \slant defines \it@next to be
-% whatever the character following the parameter is. \d@slant checks
-% to see if \it@next is a comma or period; if it is neither, the
-% italic correction (\/) is included.
-%
-\catcode`\@=11 % Temporarily make @ a letter
-\def\ital#1{\toks0={#1}\let\slf@nt=\it\futurelet\it@next\d@slant}
-\def\slant#1{\toks0={#1}\let\slf@nt=\sl\futurelet\it@next\d@slant}
-\def\d@slant{{\slf@nt\the\toks0}%
- \ifx\it@next,% % If \it@next is not a comma
- \else\ifx\it@next.% % ... and is not a period
- \else\/% % ... insert the correction (\/)
- \fi\fi% % ...
- \let\it@next=\relax% % "Undefine" \it@next
- }
-\catcode`\@=12 % Reset @ as other
diff --git a/Master/texmf-dist/tex/plain/newsletr/lodriver.tex b/Master/texmf-dist/tex/plain/newsletr/lodriver.tex
deleted file mode 100644
index f1e1149be41..00000000000
--- a/Master/texmf-dist/tex/plain/newsletr/lodriver.tex
+++ /dev/null
@@ -1,57 +0,0 @@
-% Save file as: LODRIVER.TEX Source: FILESERV@SHSU.BITNET
-%
-% File: LODRIVER.TEX
-%
-% Functional description:
-%
-% This file is the TeX control file for the Robert R. McCammon newsletter
-% published by Hunter Goatley.
-%
-% It depends on the file NEWSLETTER_FORMAT.TEX.
-%
-% Author: Hunter Goatley
-%
-% Date: May 26, 1990
-%
-% Modified by:
-%
-% 01-000 Hunter Goatley 3-JUN-1989 14:56
-% Original version.
-%
-\ifx\undefined\eoa\input newsletr \fi % Include macro definitions if needed
-
-\def\LO{\book{Lights Out!\/}}
-\def\POBox{P.\thinspace O.~Box 9609\relax}
-\def\CityState{Bowling Green, KY\relax}
-\def\ZipCode{42102-9609\relax}
-\def\LOAddress{\POBox, \CityState \ZipCode\relax}
-\def\RRM{Robert~R. McCammon\relax}
-\def\RM{Rick McCammon\relax}
-\def\McC{McCammon\relax}
-\newspage
-\begindoublequotes %Handle double-quotes
-
-\say{Producing Robert R. McCammon Newsletter: Vol. 2 No. 1, Issue 5}
-
-\pageheaderlinetrue \pagefooterlinetrue % Do head/foot lines
-\evenpageheader{}{Lights Out!}{} % Header for even pages
-\oddpageheader{}{The Robert R. McCammon Newsletter}{} % Header for odd pages
-\evenpagefooter{Page\ \folio}{}{January 1991} % Footer for even pages
-\oddpagefooter{Vol.\ 2\ \ No.\ 1}{}{Page\ \folio} % Footer for odd pages
-
-%\say{}
-%\say{************* PROOF MODE IS SET ************}
-%\say{}
-
-\ignoreunderfill
-%
-% Normally, I have separate files that I include.
-%
-%\include{TITLE.TEX}
-%\include{EDITORIAL.TEX}
-%\include{KAZUE.TEX}
-%\include{NEXTTIME.TEX}
-
-\include{LOSAMPLE.TEX}
-
-\bye
diff --git a/Master/texmf-dist/tex/plain/newsletr/newsletr.tex b/Master/texmf-dist/tex/plain/newsletr/newsletr.tex
index d05c957c533..c2c012072d7 100644
--- a/Master/texmf-dist/tex/plain/newsletr/newsletr.tex
+++ b/Master/texmf-dist/tex/plain/newsletr/newsletr.tex
@@ -1,10 +1,19 @@
-% Save file as: NEWSLETR.TEX Source: FILESERV@SHSU.BITNET
- \def\IDENT{01-014}
+ \def\IDENT{01-016}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Copyright 1989--1991 by Hunter Goatley. This code may be freely %
-% distributed and modified for non-commercial purposes as long as this %
-% copyright notice is retained. Please notify the author of any fixes or %
-% improvements you make. %
+% Copyright 1989--2004 by Hunter Goatley.
+%
+% Permission is granted to anyone to use this software for any purpose
+% on any computer system, and to redistribute it freely, subject to the
+% following restrictions:
+%
+% 1. This software is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%
+% 2. Altered versions must be plainly marked as such, and must not be
+% misrepresented as being the original software.
+%
+% End
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% File: NEWSLETTER_FORMAT.TEX
@@ -15,12 +24,7 @@
% newsletter. It assumes plain.tex has been loaded.
%
% Author: Hunter Goatley
-% VAX Systems Programmer
-% Western Kentucky University
-% Academic Computing, STH 226
-% Bowling Green, KY 42101
-% Voice: 502-745-5251
-% E-mail: goathunter@WKUVX1.BITNET
+% E-mail: goathunter@goatley.com
%
% Partially based on examples from _The TeXbook_, by
% Donald E. Knuth, and various other sources. Virtually
@@ -31,6 +35,13 @@
%
% Modified by:
%
+% 01-016 Hunter Goatley 22-JAN-2004 09:23
+% Changed the license for the code to make it truly free.
+%
+% 01-015 Hunter Goatley 28-JAN-2001 15:45
+% I'm back! Eliminate undesired whitespace in header and
+% footer macros.
+%
% 01-014 Hunter Goatley 21-AUG-1991 10:47
% Rewrote double-quote macros (they work now!). Cleaned up
% a little bit. Added \slant and \ital.
@@ -109,9 +120,9 @@
\def\say#1{{\let\protect\string\immediate\write10{#1}}}
\say{TeX Input file for Newsletter format - version \IDENT}
-\say{Copyright 1989-1991, Hunter Goatley}
+\say{Copyright 1989-2004, Hunter Goatley}
-\everyjob{\say{TeX Newsletter version \IDENT. Copyright 1989-1991, Hunter Goatley}}
+\everyjob{\say{TeX Newsletter version \IDENT. Copyright 1989-2004, Hunter Goatley}}
%
% The \catcode command below lets us use "@" as a letter. It can therefore
@@ -1375,7 +1386,7 @@
\vbox{\hbox to\normalhsize{{\headfont\rlap{#1}\hss{#2}\hss\llap{#3}}}%
\vskip\pageheaderskip\hrule height\headfootrule}% Do hbox and hrule
\else
- {\headfont\rlap{#1}\hss{#2}\hss\llap{#3}}
+ {\headfont\rlap{#1}\hss{#2}\hss\llap{#3}}%
\fi
}
@@ -1384,7 +1395,7 @@
\vbox{\hrule height\headfootrule\vskip\pagefooterskip
\hbox to\normalhsize{\footfont\rlap{#1}\hss{#2}\hss\llap{#3}}}%
\else
- {\footfont\rlap{#1}\hss{#2}\hss\llap{#3}}
+ {\footfont\rlap{#1}\hss{#2}\hss\llap{#3}}%
\fi
}
%
@@ -1445,6 +1456,7 @@
}
\def\book#1{\ital{#1}} %For ease, define \book too
+\def\story#1{``#1''} %Short story title (add quotes)
%
% Important - make "@" a valid alphanumeric character again
%
diff --git a/Master/texmf-dist/tex/plain/newsletr/quote.tex b/Master/texmf-dist/tex/plain/newsletr/quote.tex
deleted file mode 100644
index 627dc44d627..00000000000
--- a/Master/texmf-dist/tex/plain/newsletr/quote.tex
+++ /dev/null
@@ -1,119 +0,0 @@
-% Save file as: QUOTE.TEX Source: FILESERV@SHSU.BITNET
-%
-% File: QUOTE.TEX
-%
-% Author: Hunter Goatley
-% goathunter@WKUVX1.BITNET
-%
-% Date: August 14, 1991
-%
-% Abstract:
-%
-% This file defines the macros \begindoublequotes and \enddoublequotes,
-% which let TeX replace the double-quote character (") with TeX's
-% left double-quote and right double-quote. For example:
-%
-% "This is a test." ---> ``This is a test.''
-%
-% The double-quote character is still available via \dq. (\" is still
-% treated as the umlaut accent.)
-%
-% This macro makes a couple of assumptions about the double-quotes:
-%
-% 1. Double-quotes are assumed to come in pairs. When replacing
-% double-quotes, the macro alternates between `` and ''. The only
-% exception to this is noted in (2) below.
-% 2. A double-quote at the beginning of a paragraph is always treated
-% as ``. This correctly handles the case where a quotation is
-% continued into a second paragraph:
-%
-% "This is the first paragraph.\par
-% "This is the second paragraph of the same quote."
-%
-% Normal TeX spacing after `` and '' is maintained by saving and
-% restoring the \spacefactor.
-%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%
-% HOW IT WORKS:
-%
-% The double-quote character (") is made active by \begindoublequotes.
-% The " macro keeps track of left-quote/right-quote pairs and inserts
-% the appropriate `` and '' in its place.
-%
-% Each character has a \spacefactor associated with it, which specifies
-% the amount of stretch or shrink that a space following the character
-% can have. Most characters have a factor of 1000, but some punctuation
-% marks have higher spacefactors, most notably the period, which has a
-% \spacefactor of 3000. This means the space following a period can
-% stretch up to 3 times more than the space after a regular character,
-% accounting for the increased space at the end of sentences.
-%
-% The `` and '' ligatures are assigned \spacefactor's of 0, so that the
-% \spacefactor that is applied to the next character is the same as that
-% of the character preceding the quotes. Because " has been redefined as
-% a macro, any spaces following " are swallowed by TeX. It was necessary
-% to have this macro re-insert any needed space so that the following
-% cases worked correctly:
-%
-% "This is a test," she said. --> ``This is a test,'' she said.
-% "This is in a list"; etc. --> ``This is in a list''; etc.
-%
-% Without the added space, the first example becomes:
-%
-% ``This is a test,''she said.
-%
-% The solution was to save the current \spacefactor before inserting a
-% right double-quote, then resetting the \spacefactor after the
-% insertion. The net effect was that the " macro has a \spacefactor
-% of 0, which matches the way TeX treats `` and ''.
-%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-{% % Begin a group for which " is active
-\catcode`\"=\active % Make " an active character
-\catcode`\@=11 % Make @ an active character
-%
-% \begindoublequotes
-%
-% This macro makes " an active character, resets the control sequence
-% \dblqu@te to L (left), and defines \dq as a replacement for ".
-%
-\gdef\begindoublequotes{% % \begindoublequotes enables "
- \global\catcode`\"=\active % Make " an active character
- \global\chardef\dq=`\" % Double-quote char. via \dq
- \global\let\dblqu@te=L % Always start with a left double-quote
- } % End of macro
-%
-% Define the macro that will be executed whenever " is encountered.
-%
-\gdef"{%
- % If the double-quote is the first character in a new paragraph,
- % make sure it becomes a left double-quote. This case can be
- % detected by checking to see if TeX is currently in vertical mode.
- % If so, the double-quote is at the beginning of the paragraph
- % (since " hasn't actually generated any horizontal mode tokens
- % yet, TeX is still in vertical mode). If the mode is vertical,
- % set \dblqu@te equal to L.
- %
- \ifinner\else\ifvmode\let\dblqu@te=L\fi\fi
- %
- % Now insert the appropriate left or right double-quote.
- %
- % If \dblqu@te is L, insert a `` and set \dblqu@te to R.
- %
- \if L\dblqu@te``\global\let\dblqu@te=R%
- %
- % Otherwise, save the current \spacefactor, insert '', set \dblqu@te
- % to L, and reset the original \spacefactor.
- %
- \else
- \let\xxx=\spacefactor % Save the \spacefactor
- ''\global\let\dblqu@te=L% % Insert '' and reset \dblqu@te
- \spacefactor\xxx % Reset the \spacefactor
- \fi % End of \if L\dblqu@te...
- } % End of " macro
-} % End of group
-
-\gdef\enddoublequotes{%
- \catcode`\"=12 %Set " back to other
- }