|
From: | Jennifer Sayers |
Subject: | Re: [groff] Alignment problems in pic drawing when using \X'ps: exec |
Date: | Wed, 25 Jul 2018 16:41:56 +1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
Dear Everyone,Thank you very much for diagnosing my problem and solving it! I had spent several hours trying to figure out what was going wrong. Now I see in the pic manual that "command" outputs a *line*, which of course has an end of line character, causing the shift down the page, as has been explained by members of this list.
My main drawing now looks tons better. I'm drawing an international laser radiation warning symbol, which has a starburst inside a warning triangle. The starburst needs lots of square line caps, while the triangle needs rounded ones. It looked very bad with rounded ends on the starburst.
jen. On 24/07/18 21:00, Ralph Corderoy wrote:
Hi Russ,I already found documented I can't see how \c is any kind of a solution where the grops man page that's effectively being called by the X command states:This isn't specific to grops or the use of `ps:' in the `\X' escape. $ cat ralph.tr .PS command "foo bar" linethick = 2 line right 1 move right 0.5 #command "\X'ps: exec 1 setlinecap'" line right 2 .PE $ $ pic <ralph.tr | grep -3 foo \h'3.500i' .sp -1 .lf 2 foo bar \D't 2.000p'\h'-2.000p' .sp -1 \h'0.000i'\v'0.000i'\D'l 1.000i 0.000i' $ The troff input has `foo bar' as input and renders it. It is on a separate line to the `\D' that follows. pic ensures troff is in no-fill mode with a `.nf' so the linefeed after the `bar' moves troff's output down by the vertical spacing. Replacing `foo bar' with the `invisible' «\X'ps:...'» doesn't change the effect of the still-present linefeed. `\c' does.
[Prev in Thread] | Current Thread | [Next in Thread] |