Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2512
Closed
Open
Issue created Aug 27, 2020 by Administrator@rootContributor

The option 'family' for tex2svg / tex2chtml has no default value

Created by: christianp

I use MathJax.getMetricsFor to get an options object for tex2chtml or tex2svg, as described in the typesetting page in the docs.

It includes an attribute family whose value is the empty string. When I pass the object to tex2chtml, I get an error "Invalid option "family" (no default exists)". So it looks easy to fix, but I don't know where to look for the default values.

Here's a node script which produces the error:

const MathJax = require('mathjax');

MathJax.init({
    loader: {load: ['input/tex', 'output/svg']}
}).then(MathJax => {
    const svg = MathJax.tex2svg('2x',{family:''});
}).catch(err => {
    console.error(err);
});

(I'd love to fix this myself, but I can't remember how to run unminified MathJax v3)

Assignee
Assign to
Time tracking