From: Martin DeMello Date: 2006-11-21T21:07:00+09:00 Subject: Re: Using two justifications on the same line. On 11/21/06, Shiloh Madsen wrote: > Ok, I think i understand that...however the shift function hasn't been > introduced yet. Is there another way that i COULD do it? If you know the chapters and pages arrays are well-formed (that is, they are the same size, and each page corresponds to the chapter in the same position) you could do this: chapters.each_with_index {|chapter, index| page = pages[index] .... } martin