Class: Jekyll::Latex::Pdf::Tikz::TikzPdf
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Jekyll::Latex::Pdf::Tikz::TikzPdf
- Defined in:
- lib/jekyll/latex/pdf/tikz/latex.rb
Instance Method Summary collapse
-
#initialize(tag_name, markup, tokens) ⇒ TikzPdf
constructor
A new instance of TikzPdf.
- #render(context) ⇒ Object
Methods included from TikzUtils
Methods included from Utilities
#nomarkdown, #nomarkdown_p, #run_cmds, #set_context_to
Constructor Details
#initialize(tag_name, markup, tokens) ⇒ TikzPdf
Returns a new instance of TikzPdf.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/jekyll/latex/pdf/tikz/latex.rb', line 12 def initialize(tag_name, markup, tokens) super parse_markup(markup) @header = <<~'END' \begin{tikzpicture} END @footer = <<~'END' \end{tikzpicture} END end |
Instance Method Details
#render(context) ⇒ Object
26 27 28 |
# File 'lib/jekyll/latex/pdf/tikz/latex.rb', line 26 def render(context) nomarkdown_p(@header + super + @footer) end |