@@ 512,8 512,8 @@ module RML
if ref.size > 0
# TODO: Insert a footnote here when footnotes are done, rather than
# a hover-over
- STDERR.puts "1. Unsupported annotation #{ref.inspect}"
- #text = @text.join, footnote = ref
+ #STDERR.puts "1. Unsupported annotation #{ref.inspect}"
+ text = @text.join, footnote = ref
else
old_text << "<color rgb='0000dd'><link anchor='#{attrs[:reference]}'>#{@text.join}</link></color>"
end
@@ 524,23 524,27 @@ module RML
@link_refs_pages[ attrs[:acronym] ] = @pdf.page_count
old_text << attrs[:acronym]
when :footnote
- STDERR.puts "Unsupported :footnote"
+ #STDERR.puts "Unsupported :footnote"
# FIXME
#
- # # header
- # bounding_box [bounds.left, bounds.top], :width => bounds.width do
- # font "Helvetica"
- # text "Here's My Fancy Header", :align => :center, :size => 25
- # stroke_horizontal_rule
- # end
+ # header
+ #@pdf.bounding_box [bounds.left, bounds.top], :width => bounds.width do
+ # @pdf.font "Helvetica"
+ # @pdf.text "Here's My Fancy Header", :align => :center, :size => 25
+ # @pdf.stroke_horizontal_rule
+ #end
#
- # # footer
- # bounding_box [bounds.left, bounds.bottom + 25], :width => bounds.width do
- # font "Helvetica"
- # stroke_horizontal_rule
- # move_down(5)
- # text "And here's a sexy footer", :size => 16
- # end
+ # footer
+ old = @pdf.cursor
+ k = [@pdf.bounds.left, @pdf.bounds.bottom + 19]
+ w = @pdf.bounds.width
+ @pdf.bounding_box k, :width => w do
+ @pdf.font "Helvetica"
+ @pdf.stroke_horizontal_rule
+ @pdf.move_down(5)
+ @pdf.text @footnotes[attrs[:footnote]], :size => 10
+ end
+ @pdf.move_cursor_to old
when :citation
old_text << "[<i>#{@text.join}</i>]"
when :underscore