Install JEuclid 3.1.9 Binary Package on macOS

Q

How to download and install JEuclid 3.1.9 Binary Package on macOS?

✍: FYIcenter

A

JEuclid is a complete MathML rendering solution. JEuclid 3.1.9 offers the following distribution packages:

  • jeuclid-3.1.9-distribution - Contains the full JEuclid distribution with all supported output formats (such as png, svg, pdf). This is what most people need.
  • jeuclid-3.1.9-minimal - Contains a minimal JEuclid distribution which supports only the standard Java output formats. Use this if you need only these formats (such as png), if you want to embed JEuclid into a non-maven2 project, or if you're interested in viewing math only.
  • jeuclid-mathviewer-3.1.9-osx - Contains the MathViewer as an application bundle for Mac OS X.
  • jeuclid-mathviewer-3.1.9-win32 - Contains the MathViewer as an application bundle for Windows. It works both on 32bit and 64bit Windows, as long as a 32 bit JRE is installed.
  • jeuclid-fop-3.1.9-distribution - Contains only the plug-in for Apache FOP.

You can follow these steps to download and install JEuclid 3.1.9 full package on macOS:

1. Go to the JEuclid SourceForge Website.

2. Click the "Download" link. You will see a download folder list.

3. Click the "3.1.9" link. You will see a download file list.

4. Click the "jeuclid-3.1.9-distribution.zip" link to download the macOS package to your ~/Downloads folder.

5. Unzip the download file ~/Downloads/jeuclid-3.1.9-distribution.zip You see the ~/Downloads/jeuclid-3.1.9 folder.

6. Move the package to your Applications folder.

fyicenter$ mv ~/Downloads/jeuclid-3.1.9 ~/Applications

7. Setup JAVA_HOME environment variable and try the "mml2xxx" command.

fyicenter$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.0.5.jdk/Contents/Home

fyicenter$ ~/Applications/jeuclid-3.1.9/bin/mml2xxx 
org.apache.commons.cli.ParseException: Not enough arguments!

usage: mml2xxx <source file(s)> <target file/directory> [options]
source is the path to the source file (MathML or ODF format)
target is the path to the target file / directory
If multiple source files are given, target must be a directory
 -antiAlias <boolean>              anti-alias mode [default: true]
 -antiAliasMinSize <float>         minimum font size for which anti-alias
                                   is turned on [default: 10.0]
 -backgroundColor <color>          default background color
                                   (mathbackground)
 -debug <boolean>                  debug mode - if on, elements will have
                                   borders drawn around them [default:
                                   false]
 -display <BLOCK|INLINE>           display style [default: BLOCK]
 -fontsDoublestruck <list>         list of font families for Double-Struck
                                   [default: MSBM10, Mathematica7, Caslon
                                   Open Face, Caslon Openface, Cloister
                                   Open Face, Academy Engraved LET,
                                   Colonna MT, Imprint MT Shadow]
 -fontsFraktur <list>              list of font families for Fraktur
                                   [default: EUFM10, Mathematica6,
                                   FetteFraktur, Fette Fraktur, Euclid
                                   Fraktur, Lucida Blackletter, Blackmoor
                                   LET]
 -fontSize <float>                 font size used for the output
                                   (mathsize) [default: 12.0]
 -fontsMonospaced <list>           list of font families for Monospaced
                                   [default: Andale Mono, Courier, Courier
                                   Mono, Courier New, Lucida Sans
                                   Typewriter, DejaVu Sans Mono,
                                   DejaVuSansMono, Bitstream Vera Sans
                                   Mono, Luxi Mono, FreeMono, monospaced]
 -fontsSansSerif <list>            list of font families for Sans-Serif
                                   [default: Verdana, Helvetica, Arial,
                                   Arial Unicode MS, Lucida Sans Unicode,
                                   Lucida Sans, Lucida Grande, DejaVu
                                   Sans, DejaVuSans, Bitstream Vera Sans,
                                   Luxi Sans, FreeSans, sansserif]
 -fontsScript <list>               list of font families for Script
                                   [default: EUSM10, cmsy10, Math5,
                                   Mathematica5, Savoye LET, Brush Script
                                   MT, Zapfino, Apple Chancery, Edwardian
                                   Script ITC, Lucida Handwriting,
                                   Monotype Corsiva, Santa Fe LET]
 -fontsSerif <list>                list of font families for Serif
                                   [default: Constantina, Cambria, Times,
                                   Times New Roman, Lucida Bright, DejaVu
                                   Serif, DejaVuSerif, Bitstream Vera
                                   Serif, Luxi Serif, FreeSerif, serif]
 -foregroundColor <color>          default foreground color (mathcolor)
                                   [default: black]
 -mfracKeepScriptLevel <boolean>   if true, <mfrac> element will NEVER
                                   increase children's scriptlevel (in
                                   violation of the spec) [default: false]
 -outFileType <arg>                output file mime type [default: derived
                                   from the target file's extension];
                                   available values are: image/png
                                   image/vnd.wap.wbmp image/jpeg
                                   application/pdf image/bmp image/x-emf
                                   image/gif image/x-gif image/svg+xml
                                   image/x-raw
                                   application/x-shockwave-flash
                                   application/postscript image/x-png
                                   image/x-portable-pixmap image/tiff
 -scriptLevel <integer>            script level [default: 0]
 -scriptMinSize <float>            font size to be used for smallest
                                   script [default: 8.0]
 -scriptSizeMult <float>           script size multiplier [default: 0.71]
Example: mml2xxx a.mml a.png -backgroundColor white

Installation is done.

 

Run JEuclid "mml2xxx" Command on macOS

Run JEuclid MathViewer 3.1.9 on macOS

Using JEuclid 3.1.9 on macOS

⇑⇑ FAQ for JEuclid for MathML

2025-04-29, ∼1198🔥, 0💬