Hi community!

We have enabled MathJax and find issue with the usage of single dollar 
signs as MathJax delimiters. We have to escape the dollar sign character 
(\$) to denote an actual dollar sign if it is used more that once in an 
abstract field, which is not ideal.

The MathJax documentation 
<https://docs.mathjax.org/en/latest/basic/mathematics.html> explains it 
well:

*The default math delimiters are $$...$$ and \[...\] for displayed 
mathematics, and \(...\) for in-line mathematics. Note in particular that 
TeX’s $...$ in-line delimiters are not used by default. That is because 
dollar signs appear too often in non-mathematical settings, which could 
cause some text to be treated as mathematics unexpectedly.*

Could this be configured in the frontend or would we need to create a PR to 
propose a change to remove single dollar signs as MathJax delimiters? It 
appears to be in this file: 

https://github.com/DSpace/dspace-angular/blob/main/src/app/core/shared/client-math.service.ts#L39

  protected mathJaxOptions = {
    tex: {
      inlineMath: [['$', '$'], ['$$', '$$'], ['\\(', '\\)']],
    },
    svg: {
      fontCache: 'global',
    },
    startup: {
      typeset: false,
    },
  };

Any guidance would be appreciated. Thank you!

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://lyrasis.org/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/14c11f0b-c1fe-412d-9330-b5b48be38684n%40googlegroups.com.

Reply via email to