Exemplo n.º 1
0
    private void generateCategoryDocs(Category cat) throws IOException {
      String heading = cat.toString().toLowerCase().replace('_', ' ');
      heading = heading.substring(0, 1).toUpperCase().concat(heading.substring(1));
      newLine();
      write("\\subsection{" + heading + "}");
      newLine();

      SortedMap<String, AnnotationInfo> funs = cat2funs.get(cat);
      for (AnnotationInfo e : funs.values()) {
        generateFunctionDocs(e);
      }
    }
Exemplo n.º 2
0
 void generate() throws IOException {
   try {
     if (STANDALONE) {
       write("\\documentclass{article}");
       newLine();
       write("\\begin{document}");
       newLine();
     }
     write("\\twocolumn");
     newLine();
     newLine();
     for (Category cat : Category.values()) {
       if (cat2funs.get(cat) != null) {
         generateCategoryDocs(cat);
       }
     }
     if (STANDALONE) {
       write("\\end{document}");
       newLine();
     }
   } finally {
     bw.close();
   }
 }