Typesetting with TEX and LATEX

Total Page:16

File Type:pdf, Size:1020Kb

Typesetting with TEX and LATEX Typesetting with TEX and LATEX Alan Hoenig 17 Bay Avenue Huntington, NY 11743 [email protected] (This presentation appears in a considerably ex- TEX in the public domain. The logo ‘TEX’ is related panded form as chapter 1 of my book TEX Unbound: to the Greek root ‘τχ’ from whence come words LATEXandTEX Strategies for Fonts, Graphics, and like ‘technology’. If pronounced properly, the face More published just this year by the Oxford of your listener may become slightly moist (but no University Press.) one complains if you say ‘tek’). By typesetting, we mean the ability to place el- The purpose of this survey is to acquaint read- ements of a document on a page according to gen- ers with the aspects of the TEX cycle necessary to erally accepted principles which most people seem produce handsome papers and books. This presen- to agree look best and make it easiest to read and tation should not be regarded as a be-all-and-end- comprehend the document. It’s surprisingly diffi- all tutorial, since (like many other mature and so- cult to do that — a typesetter has to decide how phisticated software systems) lengthy books are not best to break paragraphs into lines, how to hyphen- enough to do full justice to it. ate words, how to leave space for footnotes, how to prepare indexes and the other detritus of scholarly The TEX production cycle publishing, and provide the optimum space between Why is ‘typesetting’ not the same thing as ‘word elements on the page (among many other things). processing’? Typically, a word processor allows edit- The spacing issue is particularly critical for techni- ing of the document, but in its impatience to display cal documents. Formulas make extensive use of ar- the results immediately onscreen (most word proces- cane symbols which have different appearances and sors are aggressively wysiwyg in behavior), certain spacing depending on context. Consider, for exam- niceties are sacrificed. These niceties — fine control ple, how the placement and spacing of the ordinary of spacing, word placement, hyphenation, and so numeral ‘2’ changes in forth — are never ignored in TEX. 2 x2 2xx e− It’s useful to consider the TEX production cycle and how the spacing surrounding minus sign changes by comparing it with that of word processors. In a in word processor, the program assists you in preparing x y and x + y the document, after which it is printed. TEX relies − − on three steps. Other symbols may change depending upon whether the equation appears in text ‘ xdx’ or display 1. We use a text editor to prepare the source docu- mode: ment — the document file which consists of the R text and data of your document together with xdx. the TEX formatting commands. Let’s suppose Furthermore, if a computerZ system is going to con- this file is called myfile.tex. trol the typesetting, we expect more of it than from 2. We run myfile.tex through the T X program. a mere human. We may expect, for example, to be E If all goes well, this generates a file in which the able to label an equation in some logical way and typesetting commands are made explicit using then refer to it later by this label in our source doc- a generic printer description language indepen- ument. It would be up to the typesetter to resolve dent of any particular printer; it is device inde- these labels and references and replace the labels by pendent.TX names this file myfile.dvi.Just properly formatted label numbers. E like a computer program source file with syn- The T X system has been freely available since E tax errors, if there are any errors, we return to the mid-80s or so and accomplishes all of the above step 1 and correct them before continuing. tasks (and more) in a particularly effective manner. TEX is the creation of Donald E. Knuth of Stanford 3. Finally, we need the assistance of a special de- University, who has placed all the source code for vice driver customized to the printer. It’s the TEXNorthEast Conference, March 22 – 24, 1998 168 TUGboat, Volume 19 (1998), No. 2 169 driver’s task to translate the generic dvi com- see, LATEXisthesameasTEX, so these procedures mands into the form the printer understands. follow for a LATEX document as well. The advantages of creating a .dvi file are that 1. Use a text editor to create the source document we can print the document on any printer (at least, for subsequent processing by TEX. The source any printer for which device drivers exist) and rest document is the document file — text and type- assured that the output is identical on each device setting commands. Take care not to use a word (except for raster resolution). processor. These programs aim to do the for- matting themselves, and tend to do so by insert- Macros; logical document design ing non-Ascii characters into the document file. TEX has been called an assembly language for type- Quite apart from the fact that TEX(orLATEX) setting. This means that there are plenty of primi- needs no help with the typesetting, these binary tive commands to control fine points, but these com- characters will only confuse TEX. (If it is neces- mands may not be entirely appropriate for creating sary to use a word processor, make sure to save a new section head or aligned equation. As a re- the document in some way so as not to include sult, TEX has a rich and powerful macro creation the word processing formatting information.) facility. It’s possible (as we will see later) to string 2. Run this source file through the TEX program. primitive commands and pre-existing macro com- the simplest form of the command to do that is mands together to create new, custom typesetting commands. tex myfile Remember that the T X production cycle E where the source file has the name myfile.tex. means that we prepare a source file which is fed LATEX users will use the command into TEX at a later point. This plus the nature of the macros means that TEX supports the notion of tex &lplain myfile logical document design. We can embed components (Unix users may have to enter the ampersand of the document by means of tags which can be as \&.) defined or redefined depending upon context. One example suffices. Here’s a theorem. As in any compilation process, TEX may un- Theorem There is no royal road to typesetting. cover errors. (Warnings may be ignored, at Computer typesetting is a surprisingly least at this stage.) Return to step 1 to cor- complex task. rect these errors, and re-run it through TEX. This was typeset by means of inserting Repeat this process until all errors have been dealt with (or until there is enough of a docu- \theorem There ... ment to print.) in the source document. It may happen that it is The result of a successful T X compilation is more appropriate to display that theorem as E a new file with a dvi extension. In this example, Theorem There is no royal road we would have a new file myfile.dvi. to typesetting. Computer typeset- ting is a surprisingly complex task. 3. With the document in hand, it can be printed or The same command string will accomplish this pro- previewed on screen. In each case, appropriate vided that only the macro definition of \theorem device drivers are necessary to properly render needs be changed. The implications are enormous — the document on screen or on paper. we can design our document so that it will properly As we see, the TEX process is actually a con- printed for any set of particular formatting require- certed action between several programs in addition ments provided only that we change the particular to TEX — a text editor, a device driver, and a definitions of the macros. Many strategies exist for screen previewer. Many implementations of TEX facilitating this use of definitions. may merge several or all of these into one integrated module. AfirstTEX document The TEX document: input conventions The “steps” for generating a TEX document are well- defined, but there are sufficiently idiosyncratic im- Although it is not practical or possible to deal with plementations of TEX floating around so that it may all or even a completely useful subset of all TEX(or be necessary to adapt these procedures to a local LATEX) commands in this article, it is possible to adaptation. By the way, some readers may be inter- summarize the keyboard conventions that any TEX estedintheTEX dialect called ‘LATEX’; as we will typesetting must adhere to. TEXNorthEast Conference, March 22 – 24, 1998 170 TUGboat, Volume 19 (1998), No. 2 White space. TEX normally regards all white ‘‘Oh, the selfish shell-fish---that space as equivalent, where we include carriage re- lobster mobster---tasted turns, tabs, and of course spaces in this category. best when basted west,’’ quoth Aaron Furthermore, multiple spaces are generally equiva- while reading lent to a single space. Important exception: we pages~12--33 of his cookbook. signal the end of one paragraph and the beginning of to typeset another by skipping a line in the source file; that is, we enter two hard carriage returns in a row. (But “Oh, the selfish shell-fish — that lobster mob- three or more consecutive carriage returns is still ster — tasted best when basted west,” quoth equivalent to a pair of carriage returns.) Aaron while reading pages 12 – 33 of his cookbook.
Recommended publications
  • Tutorials Point, Simply Easy Learning
    Tutorials Point, Simply Easy Learning UML Tutorial Tutorialspoint.com UNIX is a computer Operating System which is capable of handling activities from multiple users at the same time. Unix was originated around in 1969 at AT&T Bell Labs by Ken Thompson and Dennis Ritchie. This tutorial gives an initial push to start you with UNIX. For more detail kindly check tutorialspoint.com/unix What is Unix ? The UNIX operating system is a set of programs that act as a link between the computer and the user. The computer programs that allocate the system resources and coordinate all the details of the computer's internals is called the operating system or kernel. Users communicate with the kernel through a program known as the shell. The shell is a command line interpreter; it translates commands entered by the user and converts them into a language that is understood by the kernel. Unix was originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Douglas McIlroy, and Joe Ossanna. There are various Unix variants available in the market. Solaris Unix, AIX, UP Unix and BSD are few examples. Linux is also a flavour of Unix which is freely available. Several people can use a UNIX computer at the same time; hence UNIX is called a multiuser system. A user can also run multiple programs at the same time; hence UNIX is called multitasking. Unix Architecture: Here is a basic block diagram of a UNIX system: 1 | P a g e Tutorials Point, Simply Easy Learning The main concept that unites all versions of UNIX is the following four basics: Kernel: The kernel is the heart of the operating system.
    [Show full text]
  • 307-151 Issue 1 N N~Nnwtsystem V ~ U~ U~ Release 2.0 DOCUMENTER's WORKBENCH™ Software 'Text Formatters Reference
    December 1983 307-151 Issue 1 n n~nnWTsystem V ~ U~ U~ Release 2.0 DOCUMENTER'S WORKBENCH™ Software 'Text Formatters Reference © 1983 Western Electric All Rights Reserved Printed in USA Western Electric ..... UNIX is a trademark of Bell Laboratories DOCUMENTER'S WORKBENCH is a trademark of Western Electric CONTENTS Chapter 1 INTRODUCTION Chapter 2 NROFF/TROFF TUTORIAL Chapter 3 NROFF AND TROFF USER MANUAL Chapter 4 DEVICE-INDEPENDENT TROFF Chapter 5 SROFF TUTORIAL GUIDE Chapter 6 SROFF REFERENCE MANUAL - I - Chapter 1 INTRODUCTION PAGE TEXT FORMATTERS ........................................... 1-1 Chapter 1 INTRODUCTION This book is a guide and reference manual for the text formatters that are provided with the UNIX* system DOCUMENTER'S WORKBENCHt software. This software provides an integrated set of text processing tools for easy, flexible, and professional documentation production. Books that describe other aspects of the DOCUMENTER'S WORKBENCH software are: • Introduction and Reference Manual-Select Code 307-150 • Macro Packages Reference-Select Code 307-152 • Preprocessors Reference-Select Code 307-153. The beginning user should refer to the DOCUMENTER'S WORKBENCH software Introduction and Reference Manual for a better overall description of the text processing tools available on the UNIX system. TEXT FORMATTERS On the DOCUMENTER'S WORKBENCH software, the text formatting programs provide control of text format by the use of requests (sometimes called formatter primitives) that are mixed in with the text to be formatted. These requests normally consist of two lowercase letters preceded by a period, on a line by themselves in the text file. The request may be followed on the same line by numbers or letters that provide the formatter with more information about the function of the request.
    [Show full text]
  • UNIX™ System V DOCUMENTER's WORKBENCH™ Volume ONE
    ___ALTOS _ UNIX™ SySTEM V DOCUMENTER'S WORKBENCH™ VOlUME ONE INTROduCTioN ANd TEXT FORMATTERS REfERENCE UNIX™ System V DOCUMENTER'S WORKBENCH™ Volume One ACKNOW'LBDGBMEN'rS The Altos logo, as it appears in this manual, is a registered trademark of Altos Computer Systems. DOCUMENTER IS WORKBENCH™ is a trademark of AT&T Technologies. IMPRINT@ and IMAGEN® are registered trademarks of the IMAGEN Corporation. TEKTRONIX® is a registered trademark of Tektronics, Inc. TELETYPE™ is a trademark of AT&T Teletype Corporation. TRENDATA® is a registered trademark of Trendata Corporation. UNIX™ is a tr ademark of AT &'1' Bell Labor at or ies. CONTENTS Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE Chapter 2 DOCUMENT PREPARATION APPENDIX USER REFERENCE MANUAL - i - Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE PAGE INTRODUCTION............................................... 1-1 HOW TO USE THIS BOOK. • . • . .. 1-2 I!.. 1 ,J Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE INTRODUCTION This book is the introductory volume of a set of documents that provide information about the DOCUMENTER'S WORKBENCH software on the UNIX* system. Other books in this series are: 307-151 Text Formatters Reference-provides a reference covering the text formatters nroff, troff (device independent), otroff (old troff), and sroff. 307 -152 Macro Packages Reference-provides a reference for the macro packages mm (memorandum macros), sroff/mm (mm macros for the sroff formatter), and mv (view graph macros). 307-153 Preprocessors Reference-provides a reference for the preprocessors tbl, pic, and eqn/neqn. This book is both an introduction to the DOCUMENTER'S WORKBENCH software and a DOCUMENTER'S WORKBENCH software command reference manual. Chapter 2 contains introductory material on some of the software, and the appendix provides pages describing the various commands that are part of the DOCUMENTER'S WORKBENCH software.
    [Show full text]
  • 307-150 Introduction and Reference Manual
    December 1983 307 -1 50 Issue 1 n n~nnWT~ystem V ~ U~ UfA\. Release 2.0 DOCUMENTER'S WORKBENCH™ Software Introduction and Reference Manual ©1983 Western Electric All Rights Reserved Printed in USA Western Electric UNIX is a trademark of Bell Laboratories DOCUMENTER'S WORKBENCH is a trademark of West em Electric CONTENTS Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE Chapter 2 DOCUMENT PREPARATION APPENDIX USER REFERENCE MANUAL - i - Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE PAGE INTRODUCTION. • . .. 1-1 HOW TO USE THIS BOOK. • . 1-2 Chapter 1 DOCUMENTER'S WORKBENCH SOFTWARE INTRODUCTION This book is the introductory volume of a set of documents that provide information about the DOCUMENTER'S WORKBENCH software on the UNIX* system. Other books in this series are: 307-151 Text Formatters Reference-provides a reference covering the text formatters nroff, troff (device independent), otroff (old troff), and sroff. 307-152 Macro Packages Reference-provides a reference for the macro packages mm (memorandum macros), sroff/mm (mm macros for the sroff formatter), and mv (viewgraph macros). 307 -153 Preprocessors Reference-provides a reference for the preprocessors tbl, pic, and eqn!neqn. This book is both an introduction to the DOCUMENTER'S WORKBENCH software and a DOCUMENTER'S WORKBENCH software command reference manual. Chapter 2 contains introductory material on some of the software, and the appendix provides pages describing the various commands that are part of the DOCUMENTER'S WORKBENCH software. * UNIX is a trademark of Bell Laboratories. 1-1 DWB SOFTWARE HOW TO USE THIS BOOK If you are a beginning user, read Chapter 2, Document Preparation, first.
    [Show full text]
  • Nroff/Troff User's Manual
    AT&T Bell Laboratories Murray Hill, New Jersey 07974 Computing Science Technical Report No. 54 Troff User's Manual² Joseph F. Ossanna Brian W. Kernighan Revised November, 1992 Troff User's Manual² Joseph F. Ossanna Brian W. Kernighan AT&T Bell Laboratories Murray Hill, New Jersey 07974 Revised November, 1992 Troff User's Manual² Joseph F. Ossanna Brian W. Kernighan AT&T Bell Laboratories Murray Hill, New Jersey 07974 Introduction Troff and nroff are text processors that format text for typesetter- and typewriter-like terminals, respectively. They accept lines of text interspersed with lines of format control information and format the text into a printable, paginated document having a user-designed style. Troff and nroff offer unusual free- dom in document styling: arbitrary style headers and footers; arbitrary style footnotes; multiple automatic sequence numbering for paragraphs, sections, etc; multiple column output; dynamic font and point-size control; arbitrary horizontal and vertical local motions at any point; and a family of automatic overstriking, bracket construction, and line-drawing functions. Troff produces its output in a device-independent form, although parameterized for a specific device; troff output must be processed by a driver for that device to produce printed output. Troff and nroff are highly compatible with each other and it is almost always possible to prepare input acceptable to both. Conditional input is provided that enables the user to embed input expressly des- tined for either program. Nroff can prepare output directly for a variety of terminal types and is capable of utilizing the full resolution of each terminal. A warning, however: nroff necessarily cannot support all fea- tures of troff.
    [Show full text]
  • Reconstructed Paper In
    A Bell Laboratories Cover Sheet for Technical Memorandum The information contained herein is for the use of employees of Bell Laboratories and is not for publication. (See GEI 13.9-3) Title- Experience with the Mergenthaler Linotron 202 Date- January 6, 1980 Phototypesetter, or, How We Spent Our Summer Vacation TM- 80-1270-1, 80-1271-x, 80-1273-x Other Keywords- reverse engineering Author Location Extension Charging Case- 39199 Joe Condon MH 2C-525 6694 Filing Case- 39199-11 Brian Kernighan MH 2C-518 6021 Ken Thompson MH 2C-423 2394 ABSTRACT In the summer of 1979, Center 127 purchased a Mergenthaler Linotron 202, a CRT-based digital phototypesetter. This paper discusses our experience with the device, some of what we have learned about how it operates, and the hardware and software we have developed to permit users to take advantage of its capabilities. | Pages Text 11 Other 2 Total 13 | | No. Figures 5 No. Tables 0 No. Refs. 3 | | E-1932-U (6-73) SEE REVERSE SIDE FOR DISTRIBUTION LIST A Bell Laboratories Subject: Experience with the Mergenthaler Linotron 202 date: January 6, 1980 Phototypesetter, or, How We Spent Our Summer Vacation from: Joe Condon Case- 39199 -- File- 39199-11 Brian Kernighan Ken Thompson TM: 80-1270-1, 80-1271-x, 80-1273-x MEMORANDUM FOR FILE 1. Introduction Bell Laboratories has used phototypesetters for some years now, primarily the Graphic Sys- tems model CAT, and most readers will be familiar with troff and related software that uses this particular typesetter. The CAT is a relatively slow and antiquated device in spite of its merits (low cost, and until recently, high reliability).
    [Show full text]
  • FOREWORD the Attached Paper Appeared As Part of a Workshop Session of Tutorial Lectures Held at the PRO- TEXT I Conference in Late 1984
    FOREWORD The attached paper appeared as part of a Workshop session of tutorial lectures held at the PRO- TEXT I Conference in late 1984. The lecture was an informal presentation telling the story of how the University of Nottingham equipped itself — just prior to the era of PostScript and “desk- top publishing” — to typeset all of its examination papers ‘in house’. On a personal level, my vol- unteering to lead this project triggered an interest in computerised typesetting which later devel- oped into a new direction in my computer science research interests. This ‘new direction’ has now lasted for more than 20 years and has grown to encompass almost all aspects of a subject now called ‘document engineering’. The paper is of some historical interest, if only to note that the equipment we used cost us the staggering sum of £80,000 in 1982. Nowadays comparable quality, and much greater speed, could be obtained from a computer and laser-printer combination costing about one twentieth of that amount. The key factors in the success of our project, in those very early days, were the willingness of the University not only to buy the necessary typesetters and computers but also to purchase a source code licence for the device-independent version of troff. This latter item, at £4000, was not cheap but it has done sterling service and is still in use, some 20 years later, in the School of Computer Science. Above all, the device independent troff, (unlike the original version of troff which was for the second-generation GSI CAT typesetter only) proved to be readily adaptable to a variety of typesetters and laser-printers.
    [Show full text]
  • A Research UNIX Reader: Annotated Excerpts from the Programmer's
    AResearch UNIX Reader: Annotated Excerpts from the Programmer’sManual, 1971-1986 M. Douglas McIlroy ABSTRACT Selected pages from the nine research editions of the UNIX®Pro grammer’sManual illustrate the development of the system. Accompanying commentary recounts some of the needs, events, and individual contributions that shaped this evolution. 1. Introduction Since it beganatthe Computing Science Research Center of AT&T Bell Laboratories in 1969, the UNIX system has exploded in coverage, in geographic distribution and, alas, in bulk. It has brought great honor to the primary contributors, Ken Thompson and Dennis Ritchie, and has reflected respect upon many others who have built on their foundation. The story of howthe system came to be and howitgrewand prospered has been told manytimes, often embroidered almost into myth. Still, aficionados seem neverto tire of hearing about howthings were in that special circle where the system first flourished. This collection of excerpts from the nine editions of the research UNIX Programmer’sManual has been chosen to illustrate trends and some of the lively give-and-take—or at least the tangible results thereof—that shaped the system. It is a domestic study,aimed only at capturing the way things were in the system’soriginal home. To look further afield would require a tome, not a report, and possibly a more dis- passionate scholar,not an intimate participant. The rawreadings are supplemented by my own recollec- tions as corrected by the memories of colleagues. The collection emphasizes development up to the Seventh Edition (v7*) in 1979, providing only occasional peeks ahead to v8 and v9.
    [Show full text]
  • TROFF ( 1 ) UNIX Programmer's Manual TROFF ( 1 ) Troff, Nroff – Text Formatting and Typesetting Troff [ Option ] ... [ File
    TROFF ( 1 ) UNIX Programmer’s Manual TROFF ( 1 ) NAME troff, nroff – text formatting and typesetting SYNOPSIS troff [ option ] ... [ file ] ... nroff [ option ] ... [ file ] ... DESCRIPTION Troff formats text in the named files for printing on a Graphic Systems C/A/T phototypesetter; nroff for typewriter-like devices. Their capabilities are described in the Nroff/Troff user’s manual. If no file argument is present, the standard input is read. An argument consisting of a single minus (– ) is taken to be a file name corresponding to the standard input. The options, which may appear in any order so long as they appear before the files, are: – olist Print only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range N– M means pages N through M; an initial – N means from the beginning to page N; and a final N– means from N to the end. – nN Number first generated page N. – sN Stop every N pages. Nroff will halt prior to every N pages (default N=1) to allow paper load- ing or changing, and will resume upon receipt of a newline. Troff will stop the phototypesetter every N pages, produce a trailer to allow changing cassettes, and resume when the typesetter’s start button is pressed. – mname Prepend the macro file /usr/lib/tmac/tmac. name to the input files . – raN Set register a (one-character) to N. – i Read standard input after the input files are exhausted. – q Invoke the simultaneous input-output mode of the rd request. NNrrooffff oon nllyy – Tname Prepare output for specified terminal.
    [Show full text]
  • Introduction to Operating Systems Abstractions Using Plan 9 from Bell
    Introduction to Operating Systems Abstractions Using Plan 9 from Bell Labs (Draft ߞ 9/18/2006) Francisco J Ballesteros Copyright © 2006 Francisco J Ballesteros Plan 9 is Copyright © 2002 Lucent Technologies Inc. All Rights Reserved. Preface Using effectively the operating system is very important for anyone working with computers. It can be the difference between performing most tasks by hand, and asking the computer to perform them. Traditionally, Operating Systems courses used UNIX to do this. However, today there is no such thing as UNIX. Linux is a huge system, full of inconsistencies, with programs that do multiple tasks and do not perform them well. Linux manual pages just cannot be read. These lecture notes use Plan 9 from Bell Labs to teach a first (practical!) course on operating sys- tems. The system is easy to use for programmers, and is an excellent example of high-quality system design and software development. Studying its code reveals how simplicity can be more effective than contortions made by other systems. The first Operating Systems course at Rey Juan Carlos University is focused on practice. Because in theory, theory is like practice, but in practice it is not. What is important is for you to use the system, and to learn to solve problems. Theory will come later to fill the gaps and try to give more insight about what a system does and how can it be used. The whole text assumes that you have been already exposed to computer, and used at least a com- puter running Windows. This is so common that it makes no sense to drop this assumption.
    [Show full text]
  • For the Love of Troff
    For the Love of Troff James K. Lowden Symas Corporation ABSTRACT The state of Unix documentation has not advanced for decades. The venerable man page remains the backbone and, as Hoare might have predicted, an improvement over many of its successors. The plethora of competing formats and systems has created a fragmented and con- fusing body of documentation, confusing to users who don’t know where to look, and to writers who don’t know where to start. One need only to search for HOWTO documents on writing documentation for conformation. This paper reviews the state of the art, and critiques the variety of documentation systems in current use. It explores why new systems were invented, which are currently fashionable, and suggests a path to a better, unified documentation system based wholly and solely on troff. The Stale State of the Art In the beginning was the man page. It divided darkness from light. And it was good. But apparently not good enough. Would-be successors include Texinfo, DocBook, Doxygen, and Markdown. Formats, beside the terminal console, include PDF and HTML. Locations might be /usr/share/man, or /usr/share/doc or /usr/share/info or /usr/share/html, or pretty much anywhere else in /usr/share, or only on the web. To each its own silo. There is no comprehensive cross-reference, no accepted universal structure or encoding or output format. There are different schools of thought about how to encourage better documen- tation to be written, what the best output medium is, and what system should be used to render the output.
    [Show full text]
  • A Program for Phototypesetting Chemical Structure Diagrams
    Compw. Ckem. Vol. II, No. 4, pp. 281-297, 1987 0097-8485187 S3.00 + OAHI Printed in Great Britain Pergamon Journals Ltd CHEM-A PROGRAM FOR PHOTOTYPESETTING CHEMICAL STRUCTURE DIAGRAMS JON L. BENTLEY, LYNN W. JELINSKI and BRIAN W. KERNIGHAN AT&T Bell Laboratories, Murray Hill, NJ 07974, U.S.A. (Received 15 December 1986) AbatractxHEM is a language for typesetting publication-quality chemical structure diagrams. It attempts to capture the way that a chemist would describe a structural formula to a colleague over the telephone. CHEM is implemented as a PIC [Kernighan, Software--Procl. Exper. 12, 1 (1982)] prepro- cessor, and runs under the UNIX operating system. Its textual input makes CHEM input-device independent and does not require a graphics terminal. CHEM diagrams can be integrated with text, and can also be used to produce slides and viewgraphs. CHEM is best suited for organic chemists, natural products chemists, and polymer chemists, although it can also be used for inorganic structure diagrams. This manuscript describes the design of CHEM and provides a tutorial on its use. INTRODUCTION TROFF formatter. Because CHEM is a PIC prepro- cessor, the user can revert to PIC for constructing Chemists communicate their findings largely through unusual molecules that are not provided for by chemical structure diagrams, with such drawings CHEM itself. [For a survey of document preparation forming an integral part of manuscripts, lectures, and tools, including those of the UNIX system, see Fur- grant proposals. As the trend toward electronic uta et al. (1982). For a discussion of the UNIX manuscript submission increases, driven both by system, see Kemighan & Pike (1984).] efficiency and by reduction or elimination of page This paper is divided into four parts.
    [Show full text]