Method: #figure
- Defined in:
- lib/texlab/figure.rb
#figure(*args) ⇒ Object
Figure generation
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/texlab/figure.rb', line 4 def figure *args opts = args. caption = args.shift format = opts[:width] ? "width=#{opts[:width]}" : opts[:format] label = opts[:label] filename = opts[:filename] if @_figures @_figures << Figure.new(format, filename, caption, label) else raise "not implemented" end end |