class Jekyll::Latex::Pdf::Scholar::Cite
Overrides the jekyll-scholar cite tag to be used for generating latex documents.
Public Class Methods
new(tag_name, arguments, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll/latex/pdf/scholar/cite.rb, line 14 def initialize(tag_name, arguments, tokens) super @keys = arguments end
Public Instance Methods
render(_context)
click to toggle source
# File lib/jekyll/latex/pdf/scholar/cite.rb, line 20 def render(_context) # set_context_to context+ if @keys.kind_of? String nomarkdown "\\parencite\{#{@keys.strip}\}" else nomarkdown "\\parencite\{" + @keys.collect {|x| x.strip || x }.join(",") + "\}" end end