Method: ReVIEW::LATEXBuilder#td

Defined in:
lib/review/latexbuilder.rb

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



871
872
873
874
875
876
877
878
879
880
881
882
# File 'lib/review/latexbuilder.rb', line 871

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