Method: ReVIEW::LATEXBuilder#inline_icon

Defined in:
lib/review/latexbuilder.rb

#inline_icon(id) ⇒ Object



1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
# File 'lib/review/latexbuilder.rb', line 1351

def inline_icon(id)
  if @chapter.image(id).path
    command = 'reviewicon'
    if @book.config.check_version('2', exception: false)
      command = 'includegraphics'
    end
    macro(command, @chapter.image(id).path)
  else
    warn "image not bound: #{id}", location: location
    "\\verb|--[[path = #{id} (#{existence(id)})]]--|"
  end
end