Method: ReVIEW::LATEXBuilder#inline_fn

Defined in:
lib/review/latexbuilder.rb

#inline_fn(id) ⇒ Object



1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
# File 'lib/review/latexbuilder.rb', line 1141

def inline_fn(id)
  if @book.config['footnotetext']
    macro("footnotemark[#{@chapter.footnote(id).number}]", '')
  elsif @doc_status[:caption] || @doc_status[:table] || @doc_status[:column] || @doc_status[:dt]
    @foottext[id] = @chapter.footnote(id).number
    macro('protect\\footnotemark', '')
  else
    macro('footnote', compile_inline(@chapter.footnote(id).content.strip))
  end
rescue KeyError
  app_error "unknown footnote: #{id}"
end