[Lemon-commits] Alpar Juttner: Use MathJax for rendering the mat...
Lemon HG
hg at lemon.cs.elte.hu
Fri Mar 1 18:20:33 CET 2013
details: http://lemon.cs.elte.hu/hg/lemon/rev/60c0c3ed8d11
changeset: 1208:60c0c3ed8d11
user: Alpar Juttner <alpar [at] cs.elte.hu>
date: Wed Dec 19 15:37:12 2012 +0100
description:
Use MathJax for rendering the math formulae (#455)
diffstat:
INSTALL | 28 ++++++++++++++++++++++++++++
doc/CMakeLists.txt | 2 ++
doc/Doxyfile.in | 4 ++--
3 files changed, 32 insertions(+), 2 deletions(-)
diffs (64 lines):
diff --git a/INSTALL b/INSTALL
--- a/INSTALL
+++ b/INSTALL
@@ -106,6 +106,34 @@
Build shared library instead of static one. Think twice if you
really want to use this option.
+-DLEMON_DOC_SOURCE_BROWSER=YES
+
+ Include the browsable cross referenced LEMON source code into the
+ doc. It makes the doc quite bloated, but may be useful for
+ developing LEMON itself.
+
+-DLEMON_DOC_USE_MATHJAX=YES
+
+ Use MathJax (http://mathjax.org) for rendering the math formulae in
+ the doc. It of much higher quality compared to the default LaTeX
+ generated static images and it allows copy&paste of the formulae to
+ LaTeX, Open Office, MS Word etc. documents.
+
+ On the other hand, it needs either Internet access or a locally
+ installed version of MathJax to properly render the doc.
+
+-DLEMON_DOC_MATHJAX_RELPATH=DIRECTORY
+
+ The location of the MathJax library. It defaults to
+ http://www.mathjax.org/mathjax, which necessitates Internet access
+ for proper rendering. The easiest way to make it usable offline is
+ to set this parameter to 'mathjax' and copy all files of the MathJax
+ library into the 'doc/html/mathjax' subdirectory of the build
+ location.
+
+ See http://docs.mathjax.org/en/latest/installation.html for more details.
+
+
-DGLPK_ROOT_DIR=DIRECTORY
-DCOIN_ROOT_DIR=DIRECTORY
-DCPLEX_ROOT_DIR=DIRECTORY
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -4,6 +4,8 @@
SET(abs_top_builddir ${PROJECT_BINARY_DIR})
SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
+SET(LEMON_DOC_USE_MATHJAX "NO" CACHE STRING "Use MathJax to display math formulae (YES/NO).")
+SET(LEMON_DOC_MATHJAX_RELPATH "http://www.mathjax.org/mathjax" CACHE STRING "MathJax library location.")
CONFIGURE_FILE(
${PROJECT_SOURCE_DIR}/doc/Doxyfile.in
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -182,8 +182,8 @@
EXT_LINKS_IN_WINDOW = NO
FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
-USE_MATHJAX = NO
-MATHJAX_RELPATH = http://www.mathjax.org/mathjax
+USE_MATHJAX = @LEMON_DOC_USE_MATHJAX@
+MATHJAX_RELPATH = @LEMON_DOC_MATHJAX_RELPATH@
SEARCHENGINE = YES
SERVER_BASED_SEARCH = NO
#---------------------------------------------------------------------------
More information about the Lemon-commits
mailing list