@Test public void itemize() throws IOException, OfxAuthoringException { f = new File(rootDir,dir+"/"+Key.itemize+".txt"); renderer.render(LatexListRenderer.ListType.list,createItem()); debug(renderer); save(renderer,f); assertText(renderer,f); }
public void render(ListType lt, Item item) throws OfxAuthoringException { preTxt.add(""); StringBuffer sb = new StringBuffer(); sb.append("\\item"); if(lt==LatexListRenderer.ListType.description) { if(!item.isSetName()){throw new OfxAuthoringException("<description.list> needss a item@name");} sb.append(" [").append(item.getName()).append("]"); } preTxt.add(sb.toString()); for(Object s : item.getContent()) { if (s instanceof String){} else if(s instanceof Paragraph){paragraphRenderer((Paragraph)s,false);} else {logger.warn("No Renderer for Element "+s.getClass().getSimpleName());} } }
LatexItemFactory extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(ListType lt, Item item) throws OfxAuthoringException { preTxt.add(""); StringBuffer sb = new StringBuffer(); sb.append("\\item"); if(lt==LatexListRenderer.ListType.description) { if(!item.isSetName()){throw new OfxAuthoringException("<description.list> needss a item@name");} sb.append(" [").append(item.getName()).append("]"); } preTxt.add(sb.toString()); for(Object s : item.getContent()) { if (s instanceof String){} else if(s instanceof Paragraph){paragraphRenderer((Paragraph)s,false);} else {logger.warn("No Renderer for Element "+s.getClass().getSimpleName());} } } }
LatexItemFactory extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(ListType lt, Item item) throws OfxAuthoringException { preTxt.add(""); StringBuffer sb = new StringBuffer(); sb.append("\\item"); if(lt==LatexListRenderer.ListType.description) { if(!item.isSetName()){throw new OfxAuthoringException("<description.list> needss a item@name");} sb.append(" [").append(item.getName()).append("]"); } preTxt.add(sb.toString()); for(Object s : item.getContent()) { if (s instanceof String){} else if(s instanceof Paragraph){paragraphRenderer((Paragraph)s,false);} else {logger.warn("No Renderer for Element "+s.getClass().getSimpleName());} } } LatexItemFactory(CrossMediaManager cmm,DefaultSettingsManager dsm); }
LatexItemFactory extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(ListType lt, Item item) throws OfxAuthoringException { preTxt.add(""); StringBuffer sb = new StringBuffer(); sb.append("\\item"); if(lt==LatexListRenderer.ListType.description) { if(!item.isSetName()){throw new OfxAuthoringException("<description.list> needss a item@name");} sb.append(" [").append(item.getName()).append("]"); } preTxt.add(sb.toString()); for(Object s : item.getContent()) { if (s instanceof String){} else if(s instanceof Paragraph){paragraphRenderer((Paragraph)s,false);} else {logger.warn("No Renderer for Element "+s.getClass().getSimpleName());} } } LatexItemFactory(CrossMediaManager cmm,DefaultSettingsManager dsm); void render(ListType lt, Item item); }
LatexItemFactory extends AbstractOfxLatexRenderer implements OfxLatexRenderer { public void render(ListType lt, Item item) throws OfxAuthoringException { preTxt.add(""); StringBuffer sb = new StringBuffer(); sb.append("\\item"); if(lt==LatexListRenderer.ListType.description) { if(!item.isSetName()){throw new OfxAuthoringException("<description.list> needss a item@name");} sb.append(" [").append(item.getName()).append("]"); } preTxt.add(sb.toString()); for(Object s : item.getContent()) { if (s instanceof String){} else if(s instanceof Paragraph){paragraphRenderer((Paragraph)s,false);} else {logger.warn("No Renderer for Element "+s.getClass().getSimpleName());} } } LatexItemFactory(CrossMediaManager cmm,DefaultSettingsManager dsm); void render(ListType lt, Item item);  }