Giter Site home page Giter Site logo

Comments (5)

paulschreiber avatar paulschreiber commented on July 21, 2024

This is working for me. Post body:

[mathjax]

$$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}$$

$$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}=\sum_{i=1}^n$$

Rendering:
screenshot 2018-02-17 14 35 05

Please provide more details. You state that the longer equation won't "show LaTeX correctly," but don't state in what ways it is shown incorrectly. Do you see no equation? Or the wrong equation? Are there any errors in the console?

from mathjax-latex.

Sunethan avatar Sunethan commented on July 21, 2024

Thanks for replying. You can see this image to know the way it's shown incorrectly.

2018-02-19 11 29 35

And its MathJax-latex plugin code is this :

2018-02-19 11 29 50

from mathjax-latex.

paulschreiber avatar paulschreiber commented on July 21, 2024

Are you seeing any errors in the console?

What are your settings on the MathJax-LaTeX settings page? Mine are:

  • inline
  • wp-latex checked
  • CDN checked
  • custom location left empty
  • Configuration: Accessible

from mathjax-latex.

Sunethan avatar Sunethan commented on July 21, 2024

Sorry for replying late. I'm a little bit busy these days. Thanks for your help ><.

This is my Mathjax setting

2018-03-14 9 06 57

Besides, I add some code before in the header.php

<!--MathJax -->	
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-MML-AM_CHTML' type='text/javascript'>
    MathJax.Hub.Config({  
     TeX: { equationNumbers: { autoNumber: "AMS" } },  
     tex2jax: {  
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],  
      displayMath: [ ['$$','$$'], ["\\[","\\]"] ],  
      processEscapes: true },  
     'HTML-CSS': { scale: 130 },  
     displayIndent: '2em'  
    });
</script>
<!--End MathJax -->

2018-03-14 9 08 21

I'm not sure if the CDN link is correct. It's my friend who help me to add this code. That enables me to use $..$ in inline mode. I've tried to delete this code to see whether everything is well. However, after I delete it and use [mathjax], some mathjax code still doesn't work. By the way, if I use too complicated latex code in inline mode, then something wrong also happens, like $E_{\text{mechanical}}$. it won't show correctly.

Thank you so much.

from mathjax-latex.

Sunethan avatar Sunethan commented on July 21, 2024

The error is :

2018-03-14 11 05 20

LaTeX Code:
$$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}=\sum_{i=1}^n$$

It renders like the html code:
$$\large\sum_{i=1}^n\vec{F}<em>{\text{ext, i}}=\sum</em>{i=1}^n$$

from mathjax-latex.

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.