-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for additional LaTeX delimiters #18
Comments
Regex: |
This is how MathJax itself searches: https://github.com/mathjax/MathJax-src/blob/master/ts/input/tex/FindTeX.ts |
For
This would cause For
|
@connerbw recommended looking at how Jetpack handles See our current method for supporting |
See also https://github.com/pkra/mathjax-node-page/blob/master/lib/tex.js (for v2 of MathJax) |
There is a GPL-licensed WordPress MathJax plugin that supports several kinds of delimiters: https://github.com/phillord/mathjax-latex |
Many advanced math users, especially those who spend time writing in LaTeX, are used to
\( ... \)
,\[...\]
or the$
character behaving as special math delimiters. Other solutions, like WP QuickLaTeX, give users an advanced feature option to declare a page as a latexpage with a shortcode, and furthermore lets them declare$
as a math delimiter (when activated, they can use$.
to denote a 'regular' dollar sign). MathJax 3.0 permits similar behavior through the use of custom delimiters: https://docs.mathjax.org/en/latest/options/input/tex.html#tex-options.Proposed:
We should add support for
\( ... \)
and\[...\]
as valid delimiters in our LaTeX/MathJax plugin.We should allow users to choose whether or not to treat single dollar signs as math delimiters. To do so, we should add an option to the MathJax settings page that allows users to treat dollar signs as math delimiters. When selected we should add the inline math and process escapes configuration options described in the MathJax documentation. This would allow them to use additional delimiters (like those described here: i.e.
$
as a math delimiter and\$
to create a 'regular' dollar sign) throughout the book.The text was updated successfully, but these errors were encountered: