home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text
- Path: sparky!uunet!think.com!ames!nsisrv!tpocc.gsfc.nasa.gov!alex
- From: alex@tpocc.gsfc.nasa.gov (Alex Measday)
- Subject: Fixed-width fonts and TROFF
- Message-ID: <1993Jan5.184840.1126@nsisrv.gsfc.nasa.gov>
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: tpocc.gsfc.nasa.gov
- Organization: Integral Systems, Inc.
- Date: Tue, 5 Jan 1993 18:48:40 GMT
- Lines: 23
-
- How do I embed fixed-width font text in a TROFF document? I use
- "ptroff -man" for manual pages and "ptroff -ms" for documents on
- a Sun workstation and I wish to display examples of C code, for
- instance, within the text.
-
- The manual pages for VxWorks (a UNIX-like, real-time operating
- system) display their code examples in fixed-width fonts. I
- examined the source to the manual pages and they used ".CS"/".CE"
- macros (if I remember correctly) to display the code examples;
- unfortunately, these macros are defined on the Sun's to simply
- display the code as bold text. I also looked at the same macro
- definitions on an HP/UX workstation and, from what I could gather
- from the comments, it looked like the fixed-width font takes the
- place of the italics font (or something like that - I haven't
- looked at it recently).
-
- I see fixed-width fonts used for code examples in published papers
- and technical reports all the time. How do people do it? Thanks
- for any help!
-
- Alex Measday
- Integral Systems, Inc.
- alex@tpocc.gsfc.nasa.gov
-