Method: ReVIEW::LATEXBuilder#th

Defined in:
lib/review/latexbuilder.rb

#th(s, cellwidth = 'l') ⇒ Object



858
859
860
861
862
863
864
865
866
867
868
869
# File 'lib/review/latexbuilder.rb', line 858

def th(s, cellwidth = 'l')
  if /\\\\/.match?(s)
    if !@book.config.check_version('2', exception: false) && cellwidth =~ /\{/
      macro('reviewth', s.gsub("\\\\\n", '\\newline{}'))
    else
      ## use shortstack for @<br>
      macro('reviewth', macro('shortstack[l]', s))
    end
  else
    macro('reviewth', s)
  end
end