use /[ /] as inline mode

8 views
Skip to first unread message

b012...@gmail.com

unread,
Sep 19, 2016, 12:55:50 AM9/19/16
to MathJax Users
i want to use /[ /] as inline mode.

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)'], ['\[','\]']]}});
</script>


however it has been thought as display mode by default.

do i have any way to make it success?

b012...@gmail.com

unread,
Sep 19, 2016, 3:37:23 AM9/19/16
to MathJax Users, b012...@gmail.com
excuse me  i mean \[ \]

Davide Cervone

unread,
Sep 19, 2016, 6:11:08 AM9/19/16
to mathja...@googlegroups.com
You need to double the backslashes, like they are for \( and \), and you probably need to remove these from the displayMath array as well, otherwise you will have \[ and \] in both lists, and it is not clear which one will win out.  So try

MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)'], ['\[','\]']],
    displayMath: [['$$','$$']]
  }
});

I haven't tested it, but this should work.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

b012...@gmail.com

unread,
Sep 19, 2016, 6:23:24 AM9/19/16
to MathJax Users
It works!

I appreciate your help very much ,THANK YOU!

Davide Cervone

unread,
Sep 19, 2016, 6:38:30 AM9/19/16
to mathja...@googlegroups.com
Glad it worked.  For anyone else trying this later, I forgot to double the backslashes in my example.  It should have been:


MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)'], ['\\[','\\]']],
    displayMath: [['$$','$$']]
  }
});

Sorry about the confusion.

Davide


On Sep 19, 2016, at 6:23 AM, b012...@gmail.com wrote:

It works!

I appreciate your help very much ,THANK YOU!

Reply all
Reply to author
Forward
0 new messages