1973: def start_columns(size = 2, gutter = 10)
1974:
1975: return false if @columns_on
1976:
1977: @columns = {
1978: :current => 1,
1979: :bot_y => @y
1980: }
1981: @columns_on = true
1982:
1983: @columns[:left] = @left_margin
1984: @columns[:right] = @right_margin
1985: @columns[:top] = @top_margin
1986: @columns[:bottom] = @bottom_margin
1987:
1988:
1989: @top_margin = @page_height - @y
1990: @columns[:size] = size || 2
1991: @columns[:gutter] = gutter || 10
1992: w = absolute_right_margin - absolute_left_margin
1993: @columns[:width] = (w - ((size - 1) * gutter)) / size.to_f
1994: @right_margin = @page_width - (@left_margin + @columns[:width])
1995: end