示例#1
0
  public void render(Title title, Section section, int lvl, LatexPreamble latexPreamble) {
    logger.trace("Render title");
    if (title.isSetNumbering()) {
      logger.warn("Ignoring numbring");
    }

    txt.add("");

    StringBuffer sb = new StringBuffer();
    sb.append("\\").append(latexPreamble.getSectionHeaderName(lvl));
    sb.append("{").append(TxtTitleFactory.build(title)).append("}");
    txt.add(sb.toString());

    if (section.isSetId()) {
      txt.add("\\label{" + section.getId() + "}");
    }
  }
示例#2
0
 public void render(Image image) {
   txt.add("  \\caption{" + TxtTitleFactory.build(image.getTitle()) + "}");
 }
示例#3
0
 public void render(Table table) {
   txt.add("\\caption{" + TxtTitleFactory.build(table.getTitle()) + "}");
 }