Coder Social home page Coder Social logo

Comments (6)

liffiton avatar liffiton commented on August 29, 2024

I think the only issue there is that the environment is named align, not aligned. Also, the align environment does not need to be enclosed in an additional math environment (your $$), so the following should work fine:

\begin{align}
abc &= def \\
abc &= def
\end{align}

There is code in the plugin to turn off the escaping and other transformations within detected math environments (in protecttex.php), and it works for me in my testing. Let me know if you still run into issues.

from dokuwiki-plugin-mathjax.

zyzhu2000 avatar zyzhu2000 commented on August 29, 2024

No, I miswrote above. Below was the actual code I used. I tried double backslashes and it did not work. I had to use quad-backslashes.

$$
\begin{aligned}
P(d|\pi^1) &={u+v \choose u} C^u (1-C)^v \\\\
P(d|\pi^2) &= {u+v \choose v} C^v (1-C)^u 
\end{aligned}
$$

from dokuwiki-plugin-mathjax.

liffiton avatar liffiton commented on August 29, 2024

Again, the $$ are unneeded, and the correct environment name is align, as far as I know. The following works for me in my dokuwiki installation:

\begin{align}
P(d|\pi^1) &={u+v \choose u} C^u (1-C)^v \\
P(d|\pi^2) &= {u+v \choose v} C^v (1-C)^u 
\end{align}

from dokuwiki-plugin-mathjax.

zyzhu2000 avatar zyzhu2000 commented on August 29, 2024

I think we can either use $$..$$ pairs with \begin{aligned}...\end{aligned} or just \begin{align}...\end{align} without the double $$ enclosings. I just tested and in either case, I had to use quad-backslashes. Could that be some versioning issues? I installed it from the extension manager yesterday.

from dokuwiki-plugin-mathjax.

liffiton avatar liffiton commented on August 29, 2024

Yes, my apologies! You're right about the environments.

It could be an issue with your version of Dokuwiki (are you on the latest?), or perhaps a conflict with some other plugin (do you have other non-standard plugins installed?). Are you using the math formula inside some other formatting block? If you put the formula on a new wiki page completely by itself, does that work?

from dokuwiki-plugin-mathjax.

liffiton avatar liffiton commented on August 29, 2024

Closing because I can't reproduce the issue in my own install and no further follow-up.

from dokuwiki-plugin-mathjax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.