Class: Mathtype3::RecordMatrix

Inherits:
BinData::Record
  • Object
show all
Includes:
Snapshot
Defined in:
lib/records3/matrix.rb

Constant Summary collapse

EXPOSED_IN_SNAPSHOT =
%i(options nudge valign h_just v_just rows cols
row_parts col_parts object_list)

Instance Method Summary collapse

Methods included from Snapshot

#snapshot

Instance Method Details

#h_justObject



63
64
65
# File 'lib/records3/matrix.rb', line 63

def h_just
  HALIGN[_h_just]
end

#optionsObject



71
72
73
# File 'lib/records3/matrix.rb', line 71

def options
  _tag_options
end

#realign(nparts) ⇒ Object



75
76
77
78
# File 'lib/records3/matrix.rb', line 75

def realign (nparts)
  offset = (((nparts +  1) * 2) % 8)
  return offset == 0 ? 0 : (8 - offset)
end

#v_justObject



67
68
69
# File 'lib/records3/matrix.rb', line 67

def v_just
  VALIGN[_v_just]
end

#valignObject



59
60
61
# File 'lib/records3/matrix.rb', line 59

def valign
  VALIGN[_valign]
end