MathMl alignment Left or Right do not rendered properly When used in Math Jax

504 views
Skip to first unread message

Saadi

unread,
May 27, 2012, 1:05:30 AM5/27/12
to MathJax Users
Hi All !!!!

I using Open Office Math 3.4 for writing MathML and render it in
browser using Math Jax.
I am facing issue with Math Ml Align left or right command. The
alignment works fine in Open Office Math but when i render it in
browser , it place all the elements at the centre.

Any suggestion or work around to solve this issue.

Thankx

Davide P. Cervone

unread,
May 27, 2012, 7:19:50 AM5/27/12
to mathja...@googlegroups.com
You can set the displayAlign and displayIndent parameters in your
configuration to control the positioning of displayed equations.
E.g., put

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
displayAlign: "left",
displayIndent: "2em"
});
</script>

somewhere BEFORE the script tag that loads MathJax.js to get left
alignment with a 2em indent.

Davide

yuriyko...@gmail.com

unread,
Feb 19, 2020, 8:31:45 AM2/19/20
to MathJax Users
Is it possible to align left if I render maths dinamically?  I use MathJax.typesetPromise() and looks like it resets all previous config and render math in the center.

Davide Cervone

unread,
Feb 19, 2020, 10:56:48 AM2/19/20
to mathja...@googlegroups.com
You appear to be mixing the v2 and v3 approaches.  The MathJax.Hub.Config() call is part of the v2 API, while MathJax.typesetPromise() is v3.  If the latter function is running, then you are using version 3, and the v2 configuration is not being processed at all (it is not that MathJax.typesetPromise() resets it, it was never set in the first place).

See the "Upgrading from v2 to v3" documentation at


for details about the differences in the two versions.  There is a configuration conversion tool at


that will help you convert your current v2 configuration to the corresponding v3 one.  There are configuration options that correspond to the displayAlign and displayIndent ones that you are using, but they are in the configuration for the specific output renderer you are using (which you don't mention).  Use the converter and you should be able to see if v3 will work for you.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/07669a22-d382-44a0-a97b-687bdb81e57b%40googlegroups.com.

yuriyko...@gmail.com

unread,
Feb 19, 2020, 12:51:35 PM2/19/20
to MathJax Users
Thanks a lot!
To unsubscribe from this group and stop receiving emails from it, send an email to mathja...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages