class CqlsBeamer::Scene
Attributes
align[RW]
default values for actors in its scene
bg[RW]
cpt[RW]
dim[RW]
fg[RW]
framed[RW]
minipage[RW]
default values for actors in its scene
name[RW]
rounded[RW]
scene[RW]
txt[RW]
unit[RW]
Public Class Methods
[](key)
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 74 def Scene.[](key) @@scenes[key] end
[]=(key,val)
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 70 def Scene.[]=(key,val) @@scenes[key]=val end
current()
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 78 def Scene.current @@curScene end
new(name,dim)
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 82 def initialize(name,dim) @name=name @scene=Group.new @unit="cm" @dim=dim.map{|e| e.to_s} @txt="" #default values @align="left,top" @minipage="" Scene[name]=self @@curScene=self end
Public Instance Methods
append(obj)
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 101 def append(obj) @@curScene=self @scene.append(obj) end
Also aliased as: <<
first()
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 108 def first txt="" txt += "\\setbeamercolor{#{@name}color}{fg=#{fg},bg=#{@bg}}\n\\begin{beamercolorbox}[wd=#{dim[2]+@unit},ht=#{dim[3]+@unit},rounded=#{@rounded}]{#{@name}color}" if @framed txt+="\\pgfsetxvec{\\pgfpoint{#{dim[2]+@unit}}{0cm}}\n\\pgfsetyvec{\\pgfpoint{0cm}{#{dim[3]+@unit}}}\n\\begin{pgfpicture}{#{dim[0]+@unit}}{#{dim[1]+@unit}}{#{dim[2]+@unit}}{#{dim[3]+@unit}}\n" return txt end
init()
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 95 def init @scene.init @txt="" @cpt[0]=1 end
last()
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 115 def last txt="\\end{pgfpicture}\n" txt += "\\end{beamercolorbox}" if @framed return txt end
output()
click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 121 def output @scene.output(@txt) return @txt end