Thread View: net.text
6 messages
6 total messages
Started by colin
Thu, 23 Oct 1986 17:46
fixed format displays in troff
Author: colin
Date: Thu, 23 Oct 1986 17:46
Date: Thu, 23 Oct 1986 17:46
19 lines
1166 bytes
1166 bytes
I am trying to include some formatted output from a program in a document which is being formatted using troff. To do this I am using the .DS and .DE macros (MM macros), e.g: .DS $ ls7 fred bill bert albert harold jim egbert jane janet john $ .DE I am using troff in conjunction with TranScript (from Abobe) together with a PostScript laser printer. The TranScript system provides Times and Helvetica proportional fonts for use with troff which consequently do not produce aligned output in such a display. Does anyone know a way round this problem ? Thanks in advance for any help.
Re: fixed format displays in troff
Author: guy
Date: Sun, 26 Oct 1986 23:47
Date: Sun, 26 Oct 1986 23:47
26 lines
1870 bytes
1870 bytes
> I am trying to include some formatted output from a program in a document
> which is being formatted using troff. ... I am using troff in conjunction
> with TranScript (from Abobe) together with a PostScript laser printer.
> The TranScript system provides Times and Helvetica proportional fonts for
> use with troff which consequently do not produce aligned output in such a
> display.
>
> Does anyone know a way round this problem ? Thanks in advance for any help.
1) System V, Release 1 had a "cw" command that provided some sort of support
for a "constant-width" font. Unfortunately, the old-style "troff" provided
with S5R1 didn't support more than four fonts; "cw" required you to choose
whether to mount the constant-width font on font position 1, 2, or 3, so you
had your choice of giving up the regular, Italic, or boldface version of the
standard font.
2) "troff" disappeared from S5R2; you have to buy the Documenter's Workbench
software to get it. However, you then got Typesetter-Independent "troff",
which can handle more fonts simultaneously. I believe TranScript supports
translating TITROFF output to PostScript. We have a constant-width font
named "L" here (I don't know whether it comes with TranScript or not) and
that's how we produce that sort of stuff.
--
Guy Harris
{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
guy@sun.com (or guy@sun.arpa)
Re: fixed format displays in troff
Author: ron crocker
Date: Mon, 27 Oct 1986 23:13
Date: Mon, 27 Oct 1986 23:13
49 lines
1631 bytes
1631 bytes
> > I am trying to include some formatted output from a program in a document > which is being formatted using troff. To do this I am using the .DS and .DE > macros (MM macros), e.g: > > .DS > $ ls7 > fred bill bert albert > harold jim egbert jane > janet john > $ > .DE > > I am using troff in conjunction with TranScript (from Abobe) together with > a PostScript laser printer. The TranScript system provides Times and Helvetica > proportional fonts for use with troff which consequently do not produce aligned > output in such a display. > > Does anyone know a way round this problem ? Thanks in advance for any help. You can do this using tbl, a program that formats data into tables. Use the following: .DS $ ls7 .TS l l l l. fred->bill->bert->albert harold->jim->egbert->jane janet->john .TE $ .DE where -> represents a TAB (ASCII ^I). When you format this, do tbl filename | troff (the same old options you had) This should give you something better. Ron Crocker AT&T Bell Laboratories Room IH 6D535 Naperville-Wheaton Road Naperville, IL 60566 (312) 979-4051
Re: fixed format displays in troff
Author: Chris Torek
Date: Tue, 28 Oct 1986 23:30
Date: Tue, 28 Oct 1986 23:30
13 lines
1167 bytes
1167 bytes
In article <2@torch.UUCP> colin@torch.UUCP writes: >I am trying to include some formatted output from a program in a >document which is being formatted using troff. ... Fixed width text looks awful unless you have a fixed width font. There are some constant width troff fonts available, but I have never found them pleasant to use (on the other hand, I switched to TeX before trying ditroff). Your particular example is probably best done with tables; see the tbl documentation. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@mimsy.umd.edu
Multiple fonts in troff
Author: Tim Rentsch
Date: Sun, 02 Nov 1986 21:24
Date: Sun, 02 Nov 1986 21:24
15 lines
1119 bytes
1119 bytes
I have been trying to figure out a way to get lots of fonts (more than four) in a single troff document. My environment is running various *troffs (troff, dvitroff, ditroff) on sun workstations, with a LaserWriter as an output device. The LaserWriter has Times Roman, Helvetica, and Courier fonts, some or all of which (but more than four at a time!) I would like to use. Is there a troff expert out there who can help with this? (Please forgive my ignorance, I don't normally use troff. Circumstances force me to do so.) cheers, txr
Re: Multiple fonts in troff
Author: Jim Webb
Date: Tue, 04 Nov 1986 23:58
Date: Tue, 04 Nov 1986 23:58
21 lines
1375 bytes
1375 bytes
> I have been trying to figure out a way to get lots of fonts (more > than four) in a single troff document. My environment is running > various *troffs (troff, dvitroff, ditroff) on sun workstations, with > a LaserWriter as an output device. You specify fonts like zo in SVR2 ditroff: \fHthis is Helvetica\fP and this is what we were Previously. \f followed by a font name makes the change for single letter font names, \f( is used for two-char names. \fP returns you to the previous font. You can also use font numbers if you know them, or load them. For example, 1 is usually Roman, 2 is Italic, and 3 is Bold. So, you could do this: \f1this is in roman,\f2 this is in italic, \f3and this is in bold\f1 Hope this helps. -- Jim Webb "Out of phase--get help" ...!ihnp4!hropus!jrw "Use the Force, Read the Source"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads