Article View: news.software.readers
Article #1031rn Reference Card
From: Louis McDonald
Date: Tue, 14 Jan 1992 00:05
Date: Tue, 14 Jan 1992 00:05
602 lines
18544 bytes
18544 bytes
The following is a reference card I put together for rn (4.4) that
is based on the man page. It is done using TeX, and is based on
the GNU Emacs reference card that comes with the distribution. I have
left the Open Software Foundation copyright in it.
To make:
- TeX the file.
- Use a DVI translator that can print landscape.
- Print the output from the DVI translator.
- should output 2 pages.
- Xerox the 2 pages back-to-back. Should make
a tri-fold.
Comments welcomed... :-)
----- cut here and save to rncard.tex
% Reference Card for rn on Unix systems. Based on the GNU Emacs
% reference card.
%
%**start of header
%
% =============================================================================
\newcount\columnsperpage
% This file can be printed with 1, 2, or 3 columns per page (see below).
% Specify how many you want here. Nothing else needs to be changed.
%
% =============================================================================
\columnsperpage=3
%
% =============================================================================
% Copyright (c) 1987 Free Software Foundation, Inc.
%
% This file is intended to be processed by plain TeX (TeX82).
%
% The final reference card has six columns, three on each side.
% This file can be used to produce it in any of three ways:
% 1 column per page
% produces six separate pages, each of which needs to be reduced to 80%.
% This gives the best resolution.
% 2 columns per page
% produces three already-reduced pages.
% You will still need to cut and paste.
% 3 columns per page
% produces two pages which must be printed sideways to make a
% ready-to-use 8.5 x 11 inch reference card.
% For this you need a dvi device driver that can print sideways.
% Which mode to use is controlled by setting \columnsperpage above.
%
% Author of reference card format:
% Stephen Gildea
% UUCP: mit-erl!gildea
% Internet: gildea@erl.mit.edu
%
% Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
% for their many good ideas.
%
%
% =============================================================================
% Author of rn reference card:
% Louis McDonald
% Internet: louis.m.mcdonald@mve.aero.org
%
% =============================================================================
%
%
\def\versionnumber{1.0}
\def\year{1992}
\def\version{January \year\ v\versionnumber}
\def\shortcopyrightnotice{\vskip 1ex plus 2 fill
\centerline{\small \copyright\ \year\ Free Software Foundation, Inc.
Permissions on back. v\versionnumber}}
\def\copyrightnotice{
\vskip 1ex plus 2 fill\hrule height 2pt\vskip 3ex plus 2ex minus 2ex%
\begingroup\small
\centerline{Copyright \copyright\ \year\ Free Software Foundation, Inc.}
\centerline{designed by Louis McDonald, \version}
\centerline{for rn version 4.4}
Permission is granted to make and distribute copies of
this card provided the copyright notice and this permission notice
are preserved on all copies.
\endgroup}
% make \bye not \outer so that the \def\bye in the \else clause below
% can be scanned without complaint.
\def\bye{\par\vfill\supereject\end}
\newdimen\intercolumnskip
\newbox\columna
\newbox\columnb
\def\ncolumns{\the\columnsperpage}
\message{[\ncolumns\space
column\if 1\ncolumns\else s\fi\space per page]}
\def\scaledmag#1{ scaled \magstep #1}
% This multi-way format was designed by Stephen Gildea
% October 1986.
\if 1\ncolumns
\hsize 4in
\vsize 10in
\voffset -.7in
\font\titlefont=\fontname\tenbf \scaledmag3
\font\headingfont=\fontname\tenbf \scaledmag2
\font\smallfont=\fontname\sevenrm
\font\smallsy=\fontname\sevensy
\footline{\hss\folio}
\def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
\else
\hsize 3.2in
\vsize 7.95in
\hoffset -.75in
\voffset -.745in
\font\titlefont=cmbx10 \scaledmag2
\font\headingfont=cmbx10 \scaledmag1
\font\smallfont=cmr6
\font\smallsy=cmsy6
\font\eightrm=cmr9
\font\eightbf=cmbx9
\font\eightit=cmti9
\font\eighttt=cmtt9
\font\eightsy=cmsy9
\textfont0=\eightrm
\textfont2=\eightsy
\def\rm{\eightrm}
\def\bf{\eightbf}
\def\it{\eightit}
\def\tt{\eighttt}
\normalbaselineskip=.8\normalbaselineskip
\normallineskip=.8\normallineskip
\normallineskiplimit=.8\normallineskiplimit
\normalbaselines\rm %make definitions take effect
\if 2\ncolumns
\let\maxcolumn=b
\footline{\hss\rm\folio\hss}
\def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
\else \if 3\ncolumns
\let\maxcolumn=c
\nopagenumbers
\else
\errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
\errmessage{Illegal number of columns per page}
\fi\fi
\intercolumnskip=.46in
\def\abc{a}
\output={%
% This next line is useful when designing the layout.
%\immediate\write16{Column \folio\abc\space starts with \firstmark}
\if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
\else\if a\abc
\global\setbox\columna\columnbox \global\def\abc{b}
%% in case we never use \columnb (two-column mode)
\global\setbox\columnb\hbox to -\intercolumnskip{}
\else
\global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
\def\multicolumnformat{\shipout\vbox{\makeheadline
\hbox{\box\columna\hskip\intercolumnskip
\box\columnb\hskip\intercolumnskip\columnbox}
\makefootline}\advancepageno}
\def\columnbox{\leftline{\pagebody}}
\def\bye{\par\vfill\supereject
\if a\abc \else\null\vfill\eject\fi
\if a\abc \else\null\vfill\eject\fi
\end}
\fi
% we won't be using math mode much, so redefine some of the characters
% we might want to talk about
\catcode`\^=12
\catcode`\_=12
\chardef\\=`\\
\chardef\{=`\{
\chardef\}=`\}
\hyphenation{mini-buf-fer}
\parindent 0pt
\parskip 1ex plus .5ex minus .5ex
\def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}
\outer\def\newcolumn{\vfill\eject}
\outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}
\outer\def\section#1{\par%\filbreak
\vskip 3ex plus 2ex minus 2ex%
\hrule height 2pt\vskip 3ex plus 2ex minus 2ex%
{\headingfont #1}\mark{#1}%
\vskip 2ex plus 1ex minus 1.5ex}
\newdimen\keyindent
\def\beginindentedkeys{\keyindent=1em}
\def\endindentedkeys{\keyindent=0em}
\endindentedkeys
\def\paralign{\vskip\parskip\halign}
\def\<#1>{$\langle${\rm #1}$\rangle$}
\def\kbd#1{{\tt#1}\null} %\null so not an abbrev even if period follows
\def\beginexample{\par\leavevmode\begingroup
\obeylines\obeyspaces\parskip0pt\tt}
{\obeyspaces\global\let =\ }
\def\endexample{\endgroup}
\def\key#1#2{\leavevmode\hbox to \hsize{\vtop
{\hsize=.75\hsize\rightskip=1em
\hskip\keyindent\relax#1}\kbd{#2}\hfil}\vskip 1em}
\newbox\metaxbox
\setbox\metaxbox\hbox{\kbd{M-x }}
\newdimen\metaxwidth
\metaxwidth=\wd\metaxbox
\def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
{\hskip\keyindent\relax#1\hfil}%
\hskip -\metaxwidth minus 1fil
\kbd{#2}\hfil}}
\def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
&\kbd{#3}\quad\cr}
%**end of header
\overfullrule 0pt
%
%
% =============================================================================
%
% rn description
%
% =============================================================================
%
\title{rn (read news) Reference Card}
\centerline{(for version 4.4)}
\section{Synopsis}
\centerline{\kbd{rn} {\it options newsgroups}}
\section{Description}
If no {\it newsgroups} are specified, all the
newsgroups which have unread news are
displayed, and then the user is asked for each
one whether he wants to read it. With a list of
newsgroups, \kbd{rn} will start up in ``add'' mode,
using the list as a set of patterns to add new
newsgroups and restrict which newsgroups are
displayed.
\kbd{Rn} operates on three levels: the
newsgroup selection level, the article
selection level, and the paging level. Each
level has its own set of commands, and its
own help menu. At the paging level, \kbd{rn} behaves
much like the \kbd{more} program. At the
article selection level, you may specify
which article you want next, or read them in
the default order. At the newsgroup selection
level, you may specify which newsgroup you
want next, or read them in the default order.
On any level, at any prompt, an `\kbd{h}' may be
typed for a list of available commands.
Typing space to any question means to do the normal thing.
You will know
what that is because every prompt has a list of several
plausible commands enclosed in square brackets. The first
command in the list is the one which will be done if you
type a space.
%
% Options
%
\section{Options}
\kbd{Rn} has a nice set of options to allow you
to tailor the interaction to your liking.
(The \kbd{rn} author swears by ``\kbd{-e -m -S -/}''.)
These options may be
set on the command line, via the \kbd{RNINIT} environment
variable, or from
within rn via the \kbd{\&} command. Options include:
\key{Check for news without reading
news. If a list of newsgroups is given on
the command line, only those newsgroups will
be checked; otherwise all subscribed-to
newsgroups are checked.}{-c}
\key{Cause each page within an
article to be started at the top of the screen,
not just the first page.}{-e}
\key{Set the prefix string for the
\kbd{F} followup command to use in prefixing each
line of the quoted article. The initial default
prefix is ``$>$''.}{-F{\it string}}
\key{Disable the clearing of the
screen at the beginning of each article, in case
you have a bizarre terminal.}{-l}
\key{Enable the marking of the last line of the previous
page printed, to help the user see where to continue
reading. It may also be used in
conjunction with the \kbd{-e} switch, in which case the page
is erased, and the first line (which is the last line
of the previous page) is highlighted. If \kbd{-m=s} is
specified, the standout mode will be used, but if \kbd{-m=u}
is specified, underlining will be used. The default
is standout.}{-m={\it mode}}
\key{Force mailbox format in
creating new save files. Ordinarily you are
asked which format you want.}{-M}
\key{Force normal (non-mailbox)
format in creating new save files. Ordinarily
you are asked which format you want.}{-N}
\key{Bypass the automatic check for new newsgroups when
starting rn.}{-q}
\key{Cause \kbd{rn} to restart in the last newsgroup read during
a previous session with rn.}{-r}
\key{Cause \kbd{rn} to enter subject search mode (\kbd{\^{}N})
automatically. Whenever a newsgroup is started up with
{\it number} unread articles or more. Additionally, it causes
any `\kbd{n}' typed to be interpreted as `\kbd{\^{}N}' instead.
If {\it number} is omitted, 3 is assumed.}{-S{\it number}}
\key{Articles are saved in a subdirectory of your private news
directory corresponding to the name of the
current newsgroup, with the filename being the article number.}{-/}
\key{Articles are saved directly to your private news directory, with
the filename being the name of the current newsgroup, first letter
capitalized.}{+/}
%\section{\ }
%
%
% Newsgroup level
%
\section{Newsgroup Selection Level}
In this section, the words ``next'' and ``previous''
refer to the ordering of the newsgroups in your \kbd{.newsrc}
file.
On the newsgroup selection level, the
prompt looks like:
\vskip .125in
\beginexample
***** 7 unread articles in talk.blurfl--read now? [ynq]
\endexample
\vskip .125in
and the following commands may be given at
this level:
\vskip .125in
\key{Do this newsgroup now.}{y}
\key{Do this newsgroup now, but
list subjects before displaying articles.}{=}
\key{Go to the next newsgroup with
unread news.}{n}
\key{Go to the previous newsgroup
with unread news.}{p}
\key{Go to the previously displayed
newsgroup.}{-}
\key{Go to {\it newsgroup}. If it
isn't currently subscribed to, you will be
asked if you want to subscribe.}{g{\it~ newsgroup}}
\key{Unsubscribe from current
newsgroup.}{u}
\key{Catch up -- mark all unread
articles in this newsgroup as read.}{c}
\key{Quit.}{q}
\key{Quit, restoring \kbd{.newsrc} to its
state at startup of \kbd{rn}.}{x}
%
% Article Level
%
\section{Article Selection Level}
On the article selection level, \kbd{rn} selects
(by default) unread articles in numerical order
(the order in which articles have arrived at
your site). The
prompt at the end of an article looks like this:
\beginexample
End of article 48 (of 57)--what next? [npq]
\endexample
\vskip .125in
The following are options at this point:
\vskip .125in
\key{Scan forward for next unread article.}{n,space}
\key{Go to the next article.}{N}
\key{Scan forward for the next article with the same subject, and
make \kbd{\^{}N} the default.}{\^{}N}
\key{Scan backward for previous unread article. Stay at the current
article if there is none.}{p}
\key{Go to the previous article.}{P}
\key{Go to the previously displayed article.}{-}
\key{Scan backward for the previous article with the same subject,
and make \kbd{\^{}N} the default.}{\^{}P}
\key{Refresh the screen.}{\^{}L}
\key{Back up one page.}{b}
\key{Quit this newsgroup and go back
to the newsgroup selection level.}{q}
\key{Go to the numbered article.}{\it number}
\key{Junk article -- mark it as read.}{j}
\key{Mark article as unread.}{m}
\key{Reply through net mail.}{r}
\key{Reply, including the current article
in the header file generated.}{R}
\key{Submit a followup article.}{f}
\key{Submit a followup article, and
include the old article, with lines prefixed
either by ``$>$'' or by the argument to a \kbd{-F}
switch.}{F}
\key{Catch up in this newsgroup; i.e.,
mark all articles as read.}{c}
\key{Unsubscribe to this newsgroup.}{u}
\key{Save to a filename.}{s {\it file}}
\key{The same as \kbd{s}, but
saves without the header.}{w {\it file}}
\key{Extract a shell archive or uuencoded binary to
the designated directory.}{e {\it directory}}
\key{End any multi-part uuencoded file extraction that
you began, and are unable (or unwilling) to complete.}{E}
\key{List subjects of unread articles.}{=}
\vskip 1in
%
% Pager Level
%
\section{Pager Level}
At the pager level (within an article), the
prompt looks like this:
\beginexample
--MORE--(17\%)
\endexample
\vskip .125in
and a number of commands may be given:
\vskip .125in
\key{Display next page.}{space}
\key{Display half a page more.}{d,\^{}D}
\key{Display one more line.}{CR}
\key{Go to the end of the current
article (don't mark it either read or unread).
Leaves you at the ``\kbd{What next?}'' prompt.}{q}
\key{Junk the current article.}{j}
\key{Refresh the screen.}{\^{}L}
\key{Back up one page.}{b,\^{}B}
%
% Environment Variables
%
\section{Environment Variables}
The following environment variables are paid attention to by
\kbd{rn}. In general the default values assumed for these
variables by \kbd{rn} are reasonable, so if you are using
\kbd{rn} for the
first time, you can safely ignore this section.
\vskip .125in
\key{When \kbd{rn} is checking for new newsgroups and finds one
matching one of the patterns in \kbd{AUTOSUBSCRIBE}, the
new group is automatically added to the end of the
\kbd{.newsrc}, subscribed. No default.}{AUTOSUBSCRIBE}
\key{\kbd{AUTOUNSUBSCRIBE} is very similar to \break\kbd{AUTOSUBSCRIBE},
above, but new newsgroups matching it are automatically
added to the end of the \kbd{.newsrc} file, unsubscribed.
No default.}{AUTOUNSUBSCRIBE}
\key{The name of your editor, if \kbd{VISUAL} is undefined.
Default is whatever your news administrator compiled
in, usually \kbd{vi}.}{EDITOR}
\key{Your full name. Default is value from \kbd{/etc/passwd} or
\kbd{\~{}/.fullname}.}{NAME}
\key{The hostname of your NNTP server. Default is name found
in the system server file.}{NNTPSERVER}
\key{Default values for switches to be passed to \kbd{rn}. No
default.}{RNINIT}
\key{The name of the directory to save to, if the save command does
not specify a directory name. Default depends on the
use of \kbd{-/} or \kbd{+/}.}{SAVEDIR}
\key{The name of the file to save to, if the same command
contains only a directory name. Default depends on the
use of \kbd{-/} or \kbd{+/}.}{SAVENAME}
\key{The name of your editor.}{VISUAL}
%
% Files
%
\section{Files}
\key{Status of your news
reading.}{\~{}/.newsrc}
\key{Backup copy of your
\kbd{.newsrc} from start of session.}{\~{}/.oldnewsrc}
\key{Lock file so you don't
screw up your \break\kbd{.newsrc}}{\~{}/.rnlock}
\key{Info from last run of
{\tt~rn}.}{\~{}/.rnlast}
\key{Soft pointers into the active file
to speed startup,
synchronous with \kbd{.newsrc} .}{\~{}/.rnsoft}
\key{Temporary header file
to pass to a mailer or news poster.}{\~{}/.rnhead}
\key{Macro and keymap
definitions.}{\~{}/.rnmac}
%
%
\section{Pattern Matching and Macros}
Consult \kbd{rn} \kbd{man} page for more information.
%
% Authors
%
\section{Rn Authors}
Larry Wall and Stan Barber
\copyrightnotice
\bye
% Local variables:
% compile-command: "tex rncard"
% End:
%--
%==============================================================================
%Louis McDonald 310-336-8914 |The Aerospace Corporation, El Segundo, CA
% |
%VM: 310-336-5454, box 68914 |Talent is a flame. Genius is a fire - Bern
%louis@speedy.aero.org | Williams
%==============================================================================
Technical Details
Message-ID:
<1992Jan14.000531.1804@speedy.aero.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!sun-barr!cs.utexas.edu!usc!aero.org!speedy.aero.org!speedy.aero.org!louisShow Full Headers
Complete Article Headers
Message-ID: <1992Jan14.000531.1804@speedy.aero.org> Subject: rn Reference Card Date: Tue, 14 Jan 1992 00:05:31 +0000 From: louis@speedy.aero.org (Louis McDonald) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!sun-barr!cs.utexas.edu!usc!aero.org!speedy.aero.org!speedy.aero.org!louis Newsgroups: aero.general,news.software.readers Keywords: tri-fold, gnu emacs, rn Sender: news@speedy.aero.org Organization: The Aerospace Corporation; El Segundo, CA Lines: 602 Nntp-Posting-Host: speedy.aero.org