gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 278/324: doc: Use MathML instead of PNG images.


From: gnunet
Subject: [gnunet-scheme] 278/324: doc: Use MathML instead of PNG images.
Date: Tue, 21 Sep 2021 13:25:18 +0200

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit 590d91555348e97b7d1c6ed9004f8d4695162891
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Sep 12 18:04:57 2021 +0200

    doc: Use MathML instead of PNG images.
    
    * Makefile.am
      (TEXMACS_CONVERT): Remove "-c".
      (TEXMACS_HTML_SETTINGS): New variable.
      (doc/scheme-gnunet.pdf,scheme-gnunet.html): Add "-c".
      (doc/scheme-gnunet.html): Add TEXMACS_HTML_SETTINGS.
---
 Makefile.am | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 5735a75..57fb4da 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -172,11 +172,20 @@ TESTS += $(SCM_TESTS)
 EXTRA_DIST = $(SCM_TESTS) tests/utils.scm build-aux/test-driver.scm
 
 # For documentation (TODO install, regenerate indices ...)
-TEXMACS_CONVERT = xvfb-run -- texmacs -c
+TEXMACS_CONVERT = xvfb-run -- texmacs
+# Use MathML for formulae instead of PNG images.
+# While the images are prettier than the rendering by the browser,
+# they aren't accessible and it is somewhat difficult to tell Automake
+# to install the PNG images.
+TEXMACS_HTML_SETTINGS = \
+  '(set-boolean-preference "texmacs->html:images" \#f)\
+   (set-boolean-preference "texmacs->html:mathjax" \#f)\
+   (set-boolean-preference "texmacs->html:mathml" \#t)'
+
 doc/scheme-gnunet.pdf: doc/scheme-gnunet.tm
-       $(TEXMACS_CONVERT) "$<" "$@" -q
+       $(TEXMACS_CONVERT) -c "$<" "$@" -q
 doc/scheme-gnunet.html: doc/scheme-gnunet.tm
-       $(TEXMACS_CONVERT) "$<" "$@" -q
+       $(TEXMACS_CONVERT) -x $(TEXMACS_HTML_SETTINGS) -c "$<" "$@" -q
 
 dist_doc_DATA = doc/scheme-gnunet.tm doc/fdl.tm
 nodist_html_DATA = doc/scheme-gnunet.html

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]