class CqlsBeamer::Actor

Attributes

align[RW]
isR[RW]
isRaw[RW]
minipage[RW]
mode[RW]
what[RW]
when[RW]
where[RW]

Public Class Methods

[](key) click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 136
def Actor.[](key)
  @@actors[key]
end
[]=(key,val) click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 132
def Actor.[]=(key,val)
  @@actors[key]=val
end
new(qui,quoi,quand,ou,align="left,top",mode=:only) click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 140
def initialize(qui,quoi,quand,ou,align="left,top",mode=:only) #align=(left-center-right,bottom-base-center-top)
  quoi=quoi.join("\n") if quoi.is_a? Array
  @what,@when,@where,@align,@mode=quoi,quand,ou,align,mode
  @minipage=""
  Actor[qui]=self
end

Public Instance Methods

output(txt,local={}) click to toggle source
# File lib/dyndoc/plugins/tex/beamer.rb, line 147
def output(txt,local={})
  local[:where]=@where unless local[:where]
  local[:when]=@when unless local[:when]
  local[:align]=@align unless local[:align]
  local[:what]=@what unless local[:what]
  local[:mode]=@mode unless local[:mode]
  local[:minipage]=@minipage unless local[:minipage]
  #Dyndoc.warn  :outputInRuby, local[:what]
  local[:what]='\begin{minipage}{'+local[:minipage]+'}'+local[:what]+'\end{minipage}' unless local[:minipage].empty?
  #Dyndoc.warn  :outputInRuby2, local[:what]
  if @isRaw or !local[:where]
    txt << "\\#{local[:mode]}<#{local[:when]}>{\n #{local[:what]}}\n"
  else
    txt << "\\#{local[:mode]}<#{local[:when]}>{\n\\pgfputat{\\pgfxy(#{local[:where]})}{\\pgfbox[#{local[:align]}]{#{local[:what]}}}}\n"
  end
end