Method: ReVIEW::LATEXBuilder#inline_chapref

Defined in:
lib/review/latexbuilder.rb

#inline_chapref(id) ⇒ Object



1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'lib/review/latexbuilder.rb', line 1048

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