Comments (7)
Well, I managed to make it work for me by just adding the following snippet to the file _includes/head/custom.html
:
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ TeX: { equationNumbers: { autoNumber: "all" } } }); </script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
from academicpages.github.io.
Hi @rcalsaverini, thanks for you quick response. I tried and found that it works only if the latex content is in the same line with $$
like:
$$z_{1-\alpha/2}\sigma\sqrt{2/n}$$
If it is writen as
$$
z_{1-\alpha/2}\sigma\sqrt{2/n}
$$
Then it does not work. However, there still a problem that the align environment does not work:
$$\begin{aligned}H_0:&\mu_0-\mu_1=0\\H_1:&\mu_0-\mu_1=\delta\end{aligned}$$
Can you help figure it out? Thanks a lot.
from academicpages.github.io.
@rcalsaverini Thanks for the above snippet.
from academicpages.github.io.
This snippet doesn't work for the display math which starts and ends with $$. Anyone can fix it ?
from academicpages.github.io.
Hi @jasonyanglu, the snippet above should work for display math using $$math here$$
. I use this in my personal blog, so I know it works there. Can you please check if there are trailing spaces before or after your equation? Maybe this is the problem.
from academicpages.github.io.
Ok, I just tested here and my setup works even with trailing spaces. It's probably another problem. Can you check if equations do get rendered if they're enclosed in $...$
, \[...\]
and \(...\)
?
from academicpages.github.io.
MathJax has been bumped to version 3.0 and I've added some notes to the template's guide page since markdown causes some minor issues with it.
from academicpages.github.io.
Related Issues (20)
- Lost the theme format for my webpage HOT 12
- Nick website
- pages build and deployment - New Jekyll Update HOT 12
- The site is not updating! HOT 8
- Issue reported already.
- How about the data in your paper to support the research results?
- Page Build Error [Perhaps Related with Jekyll Update] HOT 1
- Build failing as of this week HOT 19
- Update to a template repository HOT 1
- Social icons are blocked by CORS policy in Chrome and Firefox HOT 2
- Update documentation for usage and deployment
- How to change the title to a fixed string beside the logo of website?
- Update to latest version of Academicons
- Deploy failed HOT 3
- Update Font Awesome fonts with Bluesky icon
- Preview with serve looks perfect; format is weird on live website (may be dependency-related, may not be) HOT 7
- Long site titles break navigation on mobile devices HOT 2
- How to remove FOLLOW:GITHUB FEED in the footer HOT 3
- Allow users to disable RSS feed in the footer
- darkmode support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from academicpages.github.io.