Beispiel #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() + "}");
    }
  }
Beispiel #2
0
 public static Title build(String lang, String title) {
   Title xml = new Title();
   xml.setLang(lang);
   xml.setValue(title);
   return xml;
 }