GeneralIs there any C++ LATEX Lib?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
gohkgohk
Posts: 1
Joined: Wed Feb 08, 2012 4:32 pm

Is there any C++ LATEX Lib?

Post by gohkgohk »

Hi all,
i am new to Latex.
I want to know do there existing some LATEX LIB that allow me to generate a image of customized equations in C++ environment?

Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Is there any C++ LATEX Lib?

Post by shadgrind »

The only one I know of is mimeTeX, but you'll have to tweak the code because it was designed to create an executable which would run as a CGI program for generating web pages. It may take some effort to extract bits of the code to be used as functions or libraries for use with C++. And the images don't look all that great.

There is a fairly good Java library for LaTeX called JLaTeXMath, and you could use the Java Native Interface (JNI) to have its classes be available to your C++ program. One nice thing is that it is self-contained; in particular it doesn't require LaTeX to be installed. Using JNI is very straightforward and might be the best way to go for your purposes.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
calixte
Posts: 1
Joined: Mon Feb 13, 2012 8:18 pm

Re: Is there any C++ LATEX Lib?

Post by calixte »

Hi,

A very easy way to call Java from C++ is to use GIWS (it is intensively used in Scilab):
http://forge.scilab.org/index.php/p/giws/

Calixte
Post Reply