615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
|
# File 'lib/review/latexbuilder.rb', line 615
def image_dummy(id, caption, lines)
warn "image not bound: #{id}", location: location
puts '\begin{reviewdummyimage}'
puts escape("--[[path = #{id} (#{existence(id)})]]--")
lines.each do |line|
puts "\n"
puts detab(line.rstrip)
end
puts macro('label', image_label(id))
@doc_status[:caption] = true
if @book.config.check_version('2', exception: false)
puts macro('caption', compile_inline(caption)) if caption.present?
elsif caption.present?
puts macro('reviewimagecaption', compile_inline(caption))
end
@doc_status[:caption] = nil
puts '\end{reviewdummyimage}'
end
|