Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!pegasus!hansen From: hansen@pegasus.UUCP (Tony L. Hansen) Newsgroups: net.text Subject: troff problems with \h Message-ID: <1891@pegasus.UUCP> Date: Wed, 7-Nov-84 16:47:51 EST Article-I.D.: pegasus.1891 Posted: Wed Nov 7 16:47:51 1984 Date-Received: Fri, 9-Nov-84 06:32:38 EST Organization: AT&T Information Systems, Lincroft NJ Lines: 54 I'm having problems with the following constructs (created by a filter that I have): \h'0-\w'Dequeuing'/2u+14n'Dequeuing or 'nr XX 0-\w'Dequeueing'/2u+14n \h'\n(XX'Dequeueing The idea is to move over a certain distance and then center a given string at that location. (Fill mode is turned off during this operation.) The \w'foo'/2u should return half the width of the string. Subtracting that from zero and adding 14n should place the middle of the string at 14n to the right of where we started. The ditroff output from the above example follows. As can be seen from the h4488c, the string is being written off in right field rather than towards the left of the paper where the string belongs. The font used doesn't seem to make any difference. Does anyone have any ideas what is going wrong with the above? I have tried writing it in a number of different ways, none of which seem to work. Is it something stupid on my part or something subtle? Please reply by mail and I'll summarize anything of interest that I find out. Tony Hansen pegasus!hansen x T imp x res 240 1 1 x init x font 1 R x font 2 I x font 3 B x font 4 T x font 5 L x font 6 LB x font 7 H x font 8 S V0 p1 s10 f1 H232 V40 h4488cD 27e17q19u21e17u21e17i11n21gn40 0 x trailer V2640 x stop