Method: ReVIEW::LATEXBuilder#inline_table
- Defined in:
- lib/review/latexbuilder.rb
#inline_table(id) ⇒ Object
1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 |
# File 'lib/review/latexbuilder.rb', line 1099 def inline_table(id) chapter, id = extract_chapter_id(id) if get_chap(chapter).nil? macro('reviewtableref', I18n.t('format_number_without_chapter', [chapter.table(id).number]), table_label(id, chapter)) else macro('reviewtableref', I18n.t('format_number', [get_chap(chapter), chapter.table(id).number]), table_label(id, chapter)) end rescue KeyError app_error "unknown table: #{id}" end |