Index: lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java,v diff -u -r1.2.2.6 -r1.2.2.7 --- lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java 11 May 2016 07:07:58 -0000 1.2.2.6 +++ lams_central/src/java/org/lamsfoundation/lams/web/JlatexmathServlet.java 8 Mar 2017 10:15:49 -0000 1.2.2.7 @@ -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);