Method: ReVIEW::LATEXBuilder#inline_list

Defined in:
lib/review/latexbuilder.rb

#inline_list(id) ⇒ Object

FIXME: use TeX native label/ref.



1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
# File 'lib/review/latexbuilder.rb', line 1088

def inline_list(id)
  chapter, id = extract_chapter_id(id)
  if get_chap(chapter).nil?
    macro('reviewlistref', I18n.t('format_number_without_chapter', [chapter.list(id).number]))
  else
    macro('reviewlistref', I18n.t('format_number', [get_chap(chapter), chapter.list(id).number]))
  end
rescue KeyError
  app_error "unknown list: #{id}"
end