File: README

package info (click to toggle)
libjlatexmath-java 1.0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,268 kB
  • sloc: xml: 23,113; java: 13,399; makefile: 37; cpp: 30; sh: 10
file content (14 lines) | stat: -rw-r--r-- 713 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
It is a simple example to show how to use JLaTeXMath from C++ in using Giws wrapper.
To run it:
i) make
ii) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server
iii) ./latex "\int_0^{+\infty} e^{-x^2}\mathrm{d}x = \frac\sqrt{\pi}2 \text{ and } \sum_{n=0}^{\infty}\frac{1}{n^2}=\frac{\pi^2}6" foo.png

Depending of your configuration, you probably need to modify build.xml, Makefile and latex.cpp to adapt the different paths.

On Windows :
 - you must have a environment variable JAVA_HOME to your JDK folder ( ex : C:\Program Files\java\jdk )
 - ant must be in you PATH
 - jvm.dll must be in you PATH ( Ex : C:\Program Files\Java\jre6\bin\server )

Calixte & Sylvestre.