Method: ReVIEW::LATEXBuilder#inline_chap

Defined in:
lib/review/latexbuilder.rb

#inline_chap(id) ⇒ Object



1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
# File 'lib/review/latexbuilder.rb', line 1060

def inline_chap(id)
  if @book.config['chapterlink']
    "\\reviewchapref{#{@book.chapter_index.number(id)}}{chap:#{id}}"
  else
    @book.chapter_index.number(id)
  end
rescue KeyError
  app_error "unknown chapter: #{id}"
  nofunc_text("[UnknownChapter:#{id}]")
end