Skip to content

How to use color? #36

@eoinpayne

Description

@eoinpayne

Hi, i'm looking at http://docs.mathjax.org/en/latest/input/tex/extensions/colorv2.html#tex-colorv2 but i am having trouble getting it working.

Can you advise how i would load in additional settings?

i thought something like this might work, but it didn't.

//  const settings = {
//    loader: {load: ['[tex]/colorv2']},
//    tex: {packages: {'[+]': ['color']}},
//  }

  const settings = {
    load: ['[tex]/colorv2'],
    packages: {'[+]': ['color']},
  }

  return (
    <Box sx={{fontSize: '1.35rem', pb: 1.5}}>
      <MathComponent tex={tex} settings={settings} />
    </Box>
  )

Could it be related to this issue here? #12

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions