1910: def start_columns(size = 2, gutter = 10)
1911:
1912: return false if @columns_on
1913:
1914: @columns = {
1915: :current => 1,
1916: :bot_y => @y
1917: }
1918: @columns_on = true
1919:
1920: @columns[:left] = @left_margin
1921: @columns[:right] = @right_margin
1922: @columns[:top] = @top_margin
1923: @columns[:bottom] = @bottom_margin
1924:
1925:
1926: @top_margin = @page_height - @y
1927: @columns[:size] = size || 2
1928: @columns[:gutter] = gutter || 10
1929: w = absolute_right_margin - absolute_left_margin
1930: @columns[:width] = (w - ((size - 1) * gutter)) / size.to_f
1931: @right_margin = @page_width - (@left_margin + @columns[:width])
1932: end