docs: public void invertedSumariesPerMeasure( String path) {
  
          int cont = 0;
          int algorithmSize = this.streams.get(0).algorithm.size();
          int streamSize = this.streams.size();
          int measureSize = this.streams.get(0).algorithm.get(0).measures.size();
          while (cont != measureSize) {
              String output = "";
              output += "\\documentclass{article}\n";
              output += "\\usepackage{multirow}\n\\usepackage{booktabs}\n\\begin{document}\n\\begin{table}[htbp]\n\\caption{Add caption}";
              output += "\\begin{tabular}";
              output += "{";
              for (int i = 0; i < algorithmSize + 1; i++) {
                  output += "r";
              }
             
              output += "}\n\\toprule\nAlgorithm";
              for (int i = 0; i < algorithmSize; i++) {
                  output += "& " + this.streams.get(0).algorithm.get(i).name;
              }
              output += "\\\\";
              output += "\n\\midrule\n";
  
              for (int i = 0; i < streamSize; i++) {
                  List<Algorithm> alg = this.streams.get(i).algorithm;
                  output += this.streams.get(i).name;
                  for (int j = 0; j < algorithmSize; j++) {
                      if (alg.get(j).measures.get(cont).isType()) {
                          output += "&" + Algorithm.format(alg.get(j).measures.get(cont).getValue()) + "$\\,\\pm$"
                                  + Algorithm.format(alg.get(j).measures.get(cont).getStd());
                      } else {      
                          output += "&" + Algorithm.format1(alg.get(j).measures.get(cont).getValue());
                      }
                  }
                  output += "\\\\\n";
              }
              output += "\\bottomrule\n\\end{tabular}%\n\\label{tab:addlabel}%\n\\end{table}%\n\\end{document}";
              //PrintStream out = null;
              String name = this.streams.get(0).algorithm.get(0).measures.get(cont).getName();
  //            try {
  //                out = new PrintStream(new BufferedOutputStream(new FileOutputStream(path + name + ".tex")));
  //            } catch (FileNotFoundException ex) {
  //                Logger.getLogger(Summary.class.getName()).log(Level.SEVERE, null, ex);
  //            }
  //            System.setOut(out);
  //            System.out.println(output);
  //            out.close();
               try {
              BufferedWriter out = new BufferedWriter(new FileWriter(path + name + ".tex"));
              out.write(output);  //Replace with the string 
              //you are trying to write  
              out.close();
          } catch (IOException e) {
              System.out.println("Error saving "+name + ".tex");
  
          }
              cont++;
          }
  
      }