function make_row(f, width) {
  var format = f.format == 'mml' ? "MathML" : "LaTeX, " + f.latex_style;

  var formula = f.format == 'mml' ? '<math />' :
                f.latex_style == 'text' ? '\\(\\)'
                                        : '\\[\\]';

  var formula_cell = width ?
      "<div id='" + f.id + "-div' style='width: " + width + "px;'>" + formula + "</div>" :
      "<div id='" + f.id + "-div'>" + formula + "</div>";

  return "<tr>\n" +
         "  <td>" + f.id + "</td>\n" +
         "  <td>" + format + "</td>\n" +
         "  <td>" + formula_cell + "</td>\n" +
         "</tr>\n";
}
// Make one row of the table
Make one row of the table
Make one row of the table
function make_row(f, width) {
  var format = f.format == 'mml' ? "MathML" : "LaTeX, " + f.latex_style;
  var formula = f.format == 'mml' ? '<math />' :
                f.latex_style == 'text' ? '\\(\\)'
                                        : '\\[\\]';
  var formula_cell = width ?
      "<div id='" + f.id + "-div' style='width: " + width + "px;'>" + formula + "</div>" :
      "<div id='" + f.id + "-div'>" + formula + "</div>";
  return "<tr>\n" +
         "  <td>" + f.id + "</td>\n" +
         "  <td>" + format + "</td>\n" +
         "  <td>" + formula_cell + "</td>\n" +
         "</tr>\n";
}
function make_row ( f , width ) { var format = f . format == 'mml' ? "MathML" : "LaTeX, " + f . latex_style ; var formula = f . format == 'mml' ? '<math />' : f . latex_style == 'text' ? '\\(\\)' : '\\[\\]' ; var formula_cell = width ? "<div id='" + f . id + "-div' style='width: " + width + "px;'>" + formula + "</div>" : "<div id='" + f . id + "-div'>" + formula + "</div>" ; return "<tr>\n" + "  <td>" + f . id + "</td>\n" + "  <td>" + format + "</td>\n" + "  <td>" + formula_cell + "</td>\n" + "</tr>\n" ; }
Make one row of the table
Make one row of the table