reid@glacier.ARPA (Brian Reid) (11/30/85)
Can anybody tell me the magic troff incantation for jimmying a font so that its characters come out in a fixed-pitch spacing? I'd like to be able to print netnews ".signature" files in troff, and have all of the cute graphics come out. I know about the ".cs" command, but I don't know what arguments to give it and I don't know how to un-do its effect when I am done with the fixed-width stuff. -- Brian Reid decwrl!glacier!reid Stanford reid@SU-Glacier.ARPA
kg@elan.UUCP (Ken Greer) (11/30/85)
> Can anybody tell me the magic troff incantation for jimmying a font > so that its characters come out in a fixed-pitch spacing? I'd like > to be able to print netnews ".signature" files in troff, and have > all of the cute graphics come out. I know about the ".cs" command, > but I don't know what arguments to give it and I don't know how > to un-do its effect when I am done with the fixed-width stuff. > Brian Reid decwrl!glacier!reid The format is .cs F [N [Msize]] F - Font N - Width in 1/36 em units; Turn off if omitted. M - Width of an em (optional) Example: .cs R 36 (or ".cs 1 36" for font position 1 if you prefer) will change to constant pitch with each char a width of your "em", and, .cs R ( or ".cs 1") will revert back to normal. Or, you can also select a constant width font. For example: .ft CW - Constant Width .ft P - back to previous font -- Ken Greer {amdahl,hplabs}!elan!kg
sean@ukma.UUCP (Sean Casey) (12/01/85)
I'd be interested in hearing about this too. We supposedly have fixed width fonts but they aren't TRULY fixed width. We have some applications where the characters must align all the way down a page. I've looked at the width tables for these fonts and the characters are all set to the same width. It is some anomally or misuse of troff that is causing the characters to not line up. Sean -- ------------------------------------------------------------------------------- Sean Casey UUCP: sean@ukma.UUCP or 915 Patterson Office Tower {cbosgd,anlams,hasmed}!ukma!sean University of Kentucky ARPA: ukma!sean@ANL-MCS.ARPA Lexington, Ky. 40506-0027 BITNET: sean@UKMA.BITNET
reid@glacier.ARPA (Brian Reid) (12/02/85)
In article <2397@ukma.UUCP> sean@ukma.UUCP (Sean Casey) writes: >I'd be interested in hearing about this too. We supposedly have fixed width >fonts but they aren't TRULY fixed width. We have some applications where the >characters must align all the way down a page.... It is some >anomally or misuse of troff that is causing the characters to not line up. Well, let's see. One possible way of getting bad results would be if you followed the halfway correct answer that elan!kg (Ken Greer) posted earlier in this newsgroup. Ken's solution is identical to the one that I had come up with and which did not work, thereby causing me to ask for help. Matt Bishop of RIACS and Bernie Cosell of BBN both sent me correct solutions (correct == they work in my application). Since both Matt and Bernie read net.text, I'll leave it to one of them to post their explanation. Matt, yours was an in-depth explanation of the problem, and Bernie, yours was a macro package that works, so perhaps both of you should do it. The problem with Greer's solution is that it does not work in traps and diversions. To my jaundiced eye this is primarily a condemnation of the whole idea of traps and diversions, but that's another story. -- Brian Reid decwrl!glacier!reid Stanford reid@SU-Glacier.ARPA