groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] rotating a pic block


From: Ted Harding
Subject: Re: [Groff] rotating a pic block
Date: Wed, 24 Oct 2012 21:13:52 +0100 (BST)

[See in-line below]

On 24-Oct-2012 19:41:53 Denis M. Wilson wrote:
> 
> On Wed, 24 Oct 2012 13:00:10 -0400
> "James K. Lowden" <address@hidden> wrote:
> 
>> http://lists.gnu.org/archive/html/groff/2010-01/msg00007.html
>> http://www.schemamania.org/sailing/bh/
>> 
>> In looking for a way to rotate pic figures, I found Ted Harding's
>> message, which offers a nifty trick.  But it seems it doesn't quite
>> work if the figure to be rotated is a block containing a macro call.  
>> 
>> Could someone tell me, please, why in the file bh.ms the quotation
>> marks in the Boat macro aren't rotated along with everything else?  Am
>> I using the macro or block feature incorrectly, or does "rotate" need
>> to be modified to handle this case?  
>> 
>> A matter of escapement?
> 
> The simple answer seems to be the extra " characters at the end of
> your .ds statements.
> 
> Denis

Yes, in my first posting on the subject to which James Lowden refers:
  http://lists.gnu.org/archive/html/groff/2010-01/msg00007.html
(which was sent at the "alpha" stage of the technique) I had indeed
put an extra " character at the end of each .ds statement. These are
not necessary (end-of-line is enough) and can indeed cause trouble!

If you go to the "next-in-thread" for that posting:
  http://lists.gnu.org/archive/html/groff/2010-01/msg00008.html
you will see them without terminating " characters:

ds rotate "\X'ps: exec gsave currentpoint 2 copy translate \
\\$1 rotate neg exch neg exch translate'
.ds restore "\X'ps: exec grestore'

I think the first version (with ") was an oversight!

Best wishes to all,
Ted.

>> Many thanks.  
>> 
>> --jkl
>> 
> 
> 
> -- 
> ()  ascii ribbon campaign - against html e-mail
> /\  www.asciiribbon.org   - against proprietary attachments
> 

-------------------------------------------------
E-Mail: (Ted Harding) <address@hidden>
Date: 24-Oct-2012  Time: 21:13:49
This message was sent by XFMail
-------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]