You are previewing UNIX° TEXT PROCESSING.
O'Reilly logo
UNIX° TEXT PROCESSING

Book Description

This book shows how UNIX can be used effectively in the preparation of written documents, especially in the process of producing book-length documents, i.e. typesetting. As this book will demonstrate the tools available in the UNIX environment, it is also valuable to examine text processing in terms of problems and solutions: the problems faced by a writer undertaking a large writing project and the solutions offered by using the resources and power of a computer system.

Table of Contents

  1. Coverpage
  2. Titlepage
  3. Copyright
  4. Contents
  5. Preface
  6. 1 From Typewriters to Word Processors
    1. A Workspace
    2. Tools for Editing
    3. Document Formatting
    4. Printing
    5. Other UNIX Text-Processing Tools
  7. 2 UNIX Fundamentals
    1. The UNIX Shell
    2. Output Redirection
    3. Special Characters
    4. Environment Variables
    5. Pipes and Filters
    6. Shell Scripts
  8. 3 Learning vi
    1. Session 1: Basic Commands
    2. Opening a File
    3. Moving the Cursor
    4. Simple Edits
    5. Session 2: Moving around in a Hurry
    6. Movement by Screens
    7. Movement by Text Blocks
    8. Movement by Searches
    9. Movement by Line Numbers
    10. Session 3: Beyond the Basics
    11. Command-Line Options
    12. Customizing vi
    13. Edits and Movement
    14. More Ways to Insert Text
    15. Using Buffers
    16. Marking Your Place
    17. Other Advanced Edits
  9. 4 nroff and troff
    1. What the Formatter Does
    2. Using nroff
    3. Using troff
    4. The Markup Language
    5. Turning Filling On and Off
    6. Controlling Justification
    7. Hyphenation
    8. Page Layout
    9. Page Transitions
    10. Changing Fonts
    11. A First Look at Macros
  10. 5 The ms Macros
    1. Formatting a Text File with ms
    2. Page Layout
    3. Paragraphs
    4. Changing Font and Point Size
    5. Displays
    6. Headings
    7. Cover Sheet Macros
    8. Miscellaneous Features
    9. Page Headers and Footers
    10. Problems on the First Page
    11. Extensions to ms
  11. 6 The mm Macros
    1. Formatting a Text File
    2. Page Layout
    3. Justification
    4. Word Hyphenation
    5. Displays
    6. Changing Font and Point Size
    7. More About Displays
    8. Forcing a Page Break
    9. Formatting Lists
    10. Headings
    11. Table of Contents
    12. Footnotes and References
    13. Extensions to mm
  12. 7 Advanced Editing
    1. The ex Editor
    2. Using ex Commands in vi
    3. Write Locally, Edit Globally
    4. Pattern Matching
    5. Writing and Quitting Files
    6. Reading In a File
    7. Executing UNIX Commands
    8. Editing Multiple Files
    9. Word Abbreviation
    10. Saving Commands with map
  13. 8 Formatting with tbl
    1. Using tbl
    2. Specifying Tables
    3. A Simple Table Example
    4. Laying Out a Table
    5. Describing Column Formats
    6. Changing the Format within a Table
    7. Putting Text Blocks in a Column
    8. Breaking Up Long Tables
    9. Putting Titles on Tables
    10. A tbl Checklist
    11. Some Complex Tables
  14. 9 Typesetting Equations with eqn
    1. A Simple eqn Example
    2. Using eqn
    3. Specifying Equations
    4. Spaces in Equations
    5. Using Braces for Grouping
    6. Special Character Names
    7. Special Symbols
    8. Other Positional Notation
    9. Diacritical Marks
    10. Defining Terms
    11. Quoted Text
    12. Fine-Tuning the Document
    13. Keywords and Precedence
    14. Problem Checklist
  15. 10 Drawing Pictures
    1. The pic Preprocessor
    2. From Describing to Programming Drawings
    3. pic Enhancements
  16. 11 A Miscellany of UNIX Commands
    1. Managing Your Files
    2. Viewing the Contents of a File
    3. Searching for Information in a File
    4. Proofing Documents
    5. Comparing Versions of the Same Document
    6. Manipulating Data
    7. Cleaning Up and Backing Up
    8. Compressing Files
    9. Communications
    10. Scripts of UNIX Sessions
  17. 12 Let the Computer Do the Dirty Work
    1. Shell Programming
    2. ex Scripts
    3. Stream Editing (sed)
    4. A Proofreading Tool You Can Build
  18. 13 The awk Programming Language
    1. Invoking awk
    2. Records and Fields
    3. Testing Fields
    4. Passing Parameters from a Shell Script
    5. Changing the Field Separator
    6. System Variables
    7. Looping
    8. awk Applications
    9. Testing Programs
  19. 14 Writing nroff and troff Macros
    1. Comments
    2. Defining Macros
    3. Macro Names
    4. Macro Arguments
    5. Nested Macro Definitions
    6. Conditional Execution
    7. Interrupted Lines
    8. Number Registers
    9. Defining Strings
    10. Diversions
    11. Environment Switching
    12. Redefining Control and Escape Characters
    13. Debugging Your Macros
    14. Error Handling
    15. Macro Style
  20. 15 Figures and Special Effects
    1. Formatter Escape Sequences
    2. Local Vertical Motions
    3. Local Horizontal Motions
    4. Absolute Motions
    5. Line Drawing
    6. Talking Directly to the Printer
    7. Marking a Vertical Position
    8. Overstriking Words or Characters
    9. Tabs, Leaders, and Fields
    10. Constant Spacing
    11. Pseudo-Fonts
    12. Character Output Translations
    13. Output Line Numbering
    14. Change Bars
    15. Form Letters
    16. Reading in Other Files or Program Output
  21. 16 What’s in a Macro Package?
    1. Just What Is a Macro Package, Revisited
    2. Building a Consistent Framework
    3. Page Transitions
    4. Page Transitions in ms
    5. Some Extensions to the Basic Package
    6. Other Exercises in Page Transition
  22. 17 An Extended ms Macro Package
    1. Creating a Custom Macro Package
    2. Structured Technical Documents
    3. Figure and Table Headings
    4. Lists, Lists, and More Lists
    5. Source Code and Other Examples
    6. Notes, Cautions, and Warnings
    7. Table of Contents, Index. and Other End Lists
  23. 18 Putting It All Together
    1. Saving an External Table of Contents
    2. Index Processing
    3. Let make Remember the Details
    4. Where to Go from Here
  24. A Editor Command Summary
  25. B Formatter Command Summary
  26. C Shell Command Summary
  27. D Format of troff Width Tables
  28. E Comparing mm and ms
  29. F The format Macros
  30. G Selected Readings
  31. Index