mdc/lib/rendering/renderer_latex.rb
##
# Transform width given in % into a latex compatible format
# @param [String] width width in %, e.g. "80%"
Transform width given in % into a latex compatible format
Transform width given in % into a latex compatible format
def calculate_width(width)
      new_width = width
      if /%/ === new_width
        new_width.delete!('%')
        width_num = new_width.to_i / 100.0
        new_width = "#{width_num}\\textwidth"
      end
      new_width
    end
def calculate_width ( width ) new_width = width if / % / === new_width new_width . delete! ( '%' ) width_num = new_width . to_i / 100.0 new_width = "#{width_num}\\textwidth" end new_width end
Transform width given in % into a latex compatible format
Transform width given in % into a latex compatible format
width
<not_specific>
<not_specific>
width width in %, e.g. "80%"
width width in % e . g . " 80% "