latexpp

所属分类:代码编辑器
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2017-09-16 00:46:29
上 传 者sh-1993
说明:  一个C++LaTeX发生器
(A C++ LaTeX generator)

文件列表:
LICENSE (1124, 2017-09-15)
docs/ (0, 2017-09-15)
docs/doxyfile (100712, 2017-09-15)
docs/img/ (0, 2017-09-15)
docs/img/equation.png (55474, 2017-09-15)
docs/mainpage.dox (754, 2017-09-15)
examples/ (0, 2017-09-15)
examples/html/ (0, 2017-09-15)
examples/html/Makefile (883, 2017-09-15)
examples/html/main.cpp (735, 2017-09-15)
examples/image/ (0, 2017-09-15)
examples/image/Makefile (906, 2017-09-15)
examples/image/main.cpp (446, 2017-09-15)
examples/style/ (0, 2017-09-15)
examples/style/Makefile (880, 2017-09-15)
examples/style/main.cpp (408, 2017-09-15)
katex/ (0, 2017-09-15)
katex/contrib/ (0, 2017-09-15)
katex/contrib/auto-render.min.js (3039, 2017-09-15)
katex/fonts/ (0, 2017-09-15)
katex/fonts/KaTeX_AMS-Regular.eot (71656, 2017-09-15)
katex/fonts/KaTeX_AMS-Regular.ttf (71428, 2017-09-15)
katex/fonts/KaTeX_AMS-Regular.woff (40200, 2017-09-15)
katex/fonts/KaTeX_AMS-Regular.woff2 (33188, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Bold.eot (19836, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Bold.ttf (19588, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Bold.woff (12136, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Bold.woff2 (10604, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Regular.eot (19220, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Regular.ttf (18960, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Regular.woff (11868, 2017-09-15)
katex/fonts/KaTeX_Caligraphic-Regular.woff2 (10396, 2017-09-15)
katex/fonts/KaTeX_Fraktur-Bold.eot (36200, 2017-09-15)
katex/fonts/KaTeX_Fraktur-Bold.ttf (35968, 2017-09-15)
katex/fonts/KaTeX_Fraktur-Bold.woff (23388, 2017-09-15)
katex/fonts/KaTeX_Fraktur-Bold.woff2 (20476, 2017-09-15)
katex/fonts/KaTeX_Fraktur-Regular.eot (34896, 2017-09-15)
... ...

# latexpp [![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](http://goldsborough.mit-license.org) *latexpp* is a first-of-its kind C++ library for generating `LaTeX` equations via C++. It supports conversion of `LaTeX` equations to HTML as well as JPG, PNG and SVG image formats. ## Usage ```C++ #include "latex.hpp" int main(int argc, const char* argv[]) { // Single class Latex latex; const std::string equation = "\\sum_{i=1}^{n} i = \\frac{n(n + 1)}{2}"; // Convert to PNG, store in 'equation.png' latex.to_png(equation, "equation.png"); // Convert to HTML, returns a HTML snippet std::string html = latex.to_html(equation); } ``` `equation.png`: ![equation.png](https://raw.githubusercontent.com/goldsborough/latexpp/master/docs/img/equation.png) ## Implementation Overview *latexpp* uses [`KaTeX`](https://khan.github.io/KaTeX/) to render `LaTeX` to HTML. Because `KaTeX` is a JavaScript library, *latexpp* uses [Google's V8 engine](https://github.com/v8/v8) to write JavaScript from C++. Image output is enabled by the [wkhtmltox](http://wkhtmltopdf.org) C library. To build this project, you will need: * The [Google V8 engine](https://github.com/v8/v8) to compile JavaScript. * The [wkhtmltox](http://wkhtmltopdf.org) library for image output. * [Boost](http://www.boost.org) for some cross-platform directory operations (can be dropped as a dependency if platform-indpendence is not required, or when the C++ standard committee decides to roll out boost's filesystem library in the C++ standard library.) `KaTeX` is not a dependency as it is entirely contained in the `katex` folder. ## Documentation You can build extensive documentation with `doxygen`. See the `doxyfile` in the `docs/` folder. There are also some example programs in the `examples` folder. ## LICENSE This project is released under the [MIT License](http://goldsborough.mit-license.org). For more information, see the LICENSE file. ## Authors [Peter Goldsborough](http://goldsborough.me) + [cat](https://goo.gl/IpUmJn) :heart:

近期下载者

相关文件


收藏者