Closed abdelfattahradwan closed 3 years ago
Use the experimental branch, that has loads of improvements
Use the experimental branch, that has loads of improvements
@murkle could you please tell me how (what is the proper artifact ID to use I mean) ? I'm using maven. Also, it it stable enough to be used in production?
@murkle when building the experimental version, the build fails with errors relating to something in Opentype.java
and com.google.*
packages not existing.
Are the compile errors in the tests, or somewhere important?
Stable: yes - very
Maven: sorry, no
Are the compile errors in the tests, or somewhere important?
Stable: yes - very
Maven: sorry, no
The errors are related to the tests yeah.
OK, you can either ignore the errors or try to fix them of course :)
OK, you can either ignore the errors or try to fix them of course :)
Well, 99.9% of the errors are related to missing symbols but when I go to the files where it says they're missing, I find everything in place, also ignoring them, when I import the generated jars GraphicsFactory is always null, and TeXFormula is missing all create* methods?!
@murkle Also, when I do mvn clean install -fn
it still doesn't output jars :(
I have attached a file containing the resulting logs of running mvn clean install -fn -X
inside the jlatexmath folder
The "web" package is just for use with GWT
Okay then, I'm sorry if I'm taking much of your time, but can you please tell me how to properly build this thing?! I swear I have been trying all day with no success!!
@murkle any help possible or I will just have to wait until you guys release the new version?
It should work if you delete the "web" package and testing bits
@murkle
new TeXFormula("x")
is missing createPNG
new TeXFormula("x").createBufferedImage(TeXConstants.STYLE_DISPLAY, 36.0d, Colors.WHITE, Colors.BLACK)
fails with:new TeXFormula("2x + x")
fails with:Excuse my inexperience but how do I run this test alone?
It's not a test - it has this. Just run it:
public static void main(String[] args) {
Configuration.getFontMapping();
TestJlmDesktop s = new TestJlmDesktop();
s.setVisible(true);
}
@murkle
Result:
TestJlmDesktop.java:9: error: package org.scilab.forge.jlatexmath.desktop.graphics does not exist import org.scilab.forge.jlatexmath.desktop.graphics.Graphics2DD; ^ TestJlmDesktop.java:10: error: package org.scilab.forge.jlatexmath.share does not exist import org.scilab.forge.jlatexmath.share.Colors; ^ TestJlmDesktop.java:11: error: package org.scilab.forge.jlatexmath.share does not exist import org.scilab.forge.jlatexmath.share.Configuration; ^ TestJlmDesktop.java:12: error: package org.scilab.forge.jlatexmath.share does not exist import org.scilab.forge.jlatexmath.share.TeXConstants; ^ TestJlmDesktop.java:13: error: package org.scilab.forge.jlatexmath.share does not exist import org.scilab.forge.jlatexmath.share.TeXFormula; ^ TestJlmDesktop.java:14: error: package org.scilab.forge.jlatexmath.share.platform does not exist import org.scilab.forge.jlatexmath.share.platform.FactoryProvider; ^ TestJlmDesktop.java:15: error: package org.scilab.forge.jlatexmath.share.platform.graphics does not exist import org.scilab.forge.jlatexmath.share.platform.graphics.Image; ^ TestJlmDesktop.java:20: error: cannot find symbol if (FactoryProvider.getInstance() == null) { ^ symbol: variable FactoryProvider location: class TestJlmDesktop TestJlmDesktop.java:21: error: cannot find symbol FactoryProvider.setInstance(new FactoryProviderDesktop()); ^ symbol: class FactoryProviderDesktop location: class TestJlmDesktop TestJlmDesktop.java:21: error: cannot find symbol FactoryProvider.setInstance(new FactoryProviderDesktop()); ^ symbol: variable FactoryProvider location: class TestJlmDesktop TestJlmDesktop.java:37: error: cannot find symbol Graphics2DD g2d = new Graphics2DD(g2); ^ symbol: class Graphics2DD location: class TestJlmDesktop TestJlmDesktop.java:37: error: cannot find symbol Graphics2DD g2d = new Graphics2DD(g2); ^ symbol: class Graphics2DD location: class TestJlmDesktop TestJlmDesktop.java:61: error: cannot find symbol TeXFormula formula = new TeXFormula(text); ^ symbol: class TeXFormula location: class TestJlmDesktop TestJlmDesktop.java:61: error: cannot find symbol TeXFormula formula = new TeXFormula(text); ^ symbol: class TeXFormula location: class TestJlmDesktop TestJlmDesktop.java:62: error: cannot find symbol Image im = formula.createBufferedImage(TeXConstants.STYLE_DISPLAY, ^ symbol: class Image location: class TestJlmDesktop TestJlmDesktop.java:62: error: cannot find symbol Image im = formula.createBufferedImage(TeXConstants.STYLE_DISPLAY, ^ symbol: variable TeXConstants location: class TestJlmDesktop TestJlmDesktop.java:63: error: cannot find symbol 30, Colors.BLACK, Colors.WHITE); ^ symbol: variable Colors location: class TestJlmDesktop TestJlmDesktop.java:63: error: cannot find symbol 30, Colors.BLACK, Colors.WHITE); ^ symbol: variable Colors location: class TestJlmDesktop TestJlmDesktop.java:70: error: cannot find symbol Configuration.getFontMapping(); ^ symbol: variable Configuration location: class TestJlmDesktop 19 errors
@murkle any idea what's causing the error above?
@murkle any update?!
afaik, it is still happening. Why did you close it @murkle ?
@murkle please add a comment then...
Hello,
I have recently started using jlatexmath in one of my projects and found out that \cancel isn't supported.
When I try to render a formula with \cancel it results in the following error:
I hope someone can help with this.
Thanks.