Index: lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java =================================================================== diff -u -r51fb2a37254f24bb2a805d4ffd54482c779f43fa -r30426be420958d2a6a984b156404d404c1408c23 --- lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java (.../JlatexmathServlet.java) (revision 51fb2a37254f24bb2a805d4ffd54482c779f43fa) +++ lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java (.../JlatexmathServlet.java) (revision 30426be420958d2a6a984b156404d404c1408c23) @@ -45,10 +45,9 @@ import org.scilab.forge.jlatexmath.TeXIcon; /** + * Servlet produces LaTex images based on the provided formulas. It's used by CKEditor's JLaTeXMath plugin. + * * @author Andrey Balan - * - * - * */ public class JlatexmathServlet extends HttpServlet { @@ -78,9 +77,7 @@ return; } - TeXIcon icon = formula.new TeXIconBuilder().setStyle(TeXConstants.STYLE_DISPLAY).setSize(fontSize) - .setWidth(TeXConstants.UNIT_PIXEL, 256f, TeXConstants.ALIGN_CENTER).setIsMaxWidth(true) - .setInterLineSpacing(TeXConstants.UNIT_PIXEL, 20f).build(); + TeXIcon icon = formula.new TeXIconBuilder().setStyle(TeXConstants.STYLE_DISPLAY).setSize(fontSize).build(); BufferedImage b = null; // TeXFormula fomule = new TeXFormula(formula);