Re: Quark Paragraph Numbers and other QuarkNewbie Questions
Re: Quark Paragraph Numbers and other QuarkNewbie Questions
- Subject: Re: Quark Paragraph Numbers and other QuarkNewbie Questions
- From: Shane Stanley <email@hidden>
- Date: Mon, 20 Nov 2000 10:51:35 +1100
On 20/11/00 10:28 AM +1000, Xandra Lee, email@hidden, wrote:
>
set oldSize to size of (first character of the selection)
>
my reduceSize(oldSize, reduceBy)
>
set newSize to the result
>
set size of ((first character of every paragraph) of the selection) to
>
newSize
You're doing some unnecessary work there. Just use:
set oldSize to size of (first character of the selection) as real
set size of ((first character of every paragraph) of the selection) to
(oldSize - reduceBy)
QXP lets you coerce freely between units and numbers, and if given a real
for type size assumes you mean points.
Als, you don't have to use option-spaces in things like "10 pt" (it's used
in results because QXP uses it that way in its palettes, where the smaller
type makes a normal space almost disappear).
--
Shane Stanley, email@hidden