Exemple #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() + "}");
    }
  }
Exemple #2
0
 public void render(Image image) {
   txt.add("  \\caption{" + TxtTitleFactory.build(image.getTitle()) + "}");
 }
Exemple #3
0
 public void render(Table table) {
   txt.add("\\caption{" + TxtTitleFactory.build(table.getTitle()) + "}");
 }