groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Some troff macros on the Web


From: bobm
Subject: [Groff] Some troff macros on the Web
Date: Tue, 9 May 2000 20:20:21 +1000 (EET)

As a new subscriber to the Groff digest (but as a long-time [>20
years] ditroff user), I'd like to draw attention to some macros I
wrote in the 'eighties, which I've put on the web, at

<http://www.agsm.edu.au/~bobm/odds+ends/scripts.html>

Description:

*       polish  is a sed (= the Unix stream editor) script that does many
things to ASCII text. Amongst other things, it breaks lines at new
sentences, reduces upper-case acronyms by one point size, adds
diacriticals, changes simple quotes into smart quotes, and makes a
few simple grammar checks. The best way to see what it does is to run
it as a sed script file (or files) on a text file and then compare
the output file with the original. 


*       DropCaps  is a troff (= the Unix text formatter, freely
available as the GNU groff, a great alternative to TeX and lout, BTW)
script which replaces the initial letters of paragraphs immediately
after H1 and H2 headings with drop-capitals of specified point size,
and automatically flows the text around the new drop cap. 


*       alphas  is an eqn include script. (Eqn is the troff equation
module.) Among other things, alphas prints any lower-case Greek
letters used in equations as oblique or Italic, since eqn doesn't do
this but should. (The GNU groff equivalent, geqn, does, and so these
macros would print doubly oblique letters if used with geqn/groff.)
There are also some additional symbols defined, but note that your
system's non-ASCII troff symbols may be defined differently: edit to
taste. 


*       AJM Header  is a set of troff macros used in production of
the Australian Journal of Management.  They use the Memorandum Macros
(mm) of AT&T, and so should be invoked with the troff -mm flag; they
should also work with the GNU groff -mgm flag.

Bob Marks

-- 
Robert MARKS, Australian Graduate School of Management,
              UNSW SYDNEY, NSW 2052, Australia
Home page:    <http://www.agsm.edu.au/~bobm>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]