-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using LaTeX equations in markdown #38
Comments
Maybe not the best way to do it, but this solution by @Lauler worked! I put the code below in footer.html (found at themes/hugo-apero/layouts/partials/footer.html).
|
@harshvardhaniimi I was working on this for my own site and can recommend a cleaner solution. You're definitely on the right track by including a script for mathjax in the theme files, but it's best to avoid directly modifying the files in So in the case of mathjax, we just need a way to insert the code in Yihui's example into a site "partial."
which should give every page on your site the ability to render mathjax in a blogdown post. It's possible the first time you tried to use Yihui's solution you mentioned above because you didn't replace the The above should work, but if you wanted to be even more modular with this process, instead of putting the mathjax code directly into Hope this works |
Thank you! Help here is greatly appreciated, if you'd be willing to offer this partial as a PR to the theme I'd happily merge it in! Mathjax is in my todo list: hugo-apero/hugo-apero-docs#30 |
@mikedecr Moving @apreshill I will put this as a pull request for everyone's benefit. Edit: Created pull requests for the theme (main...harshvardhaniimi:patch-1). I couldn't add the file to iyo-apero repo as it required write access. |
added MathJax support for the theme. See hugo-apero#38 for details.
@apreshill I could give this a shot combined with something like |
@harshvardhaniimi if I could make a slight suggestion to your site based on the commit you submitted, I would recommend you make your
In other words, place the calls to the two mathjax scripts within the |
Hi @mikedecr - I think I would prefer something like what I did here:
If you want to start a branch with a PR, I'm happy to respond inline! Thank you- Alison |
I am unable to use LaTeX equations in the .Rmd or .Rmarkdown files. The markdown file renders the equation well, but the website shows the raw equation.
This issue was raised for the blogdown so I guess it is related to MathJax. I tried the solution suggested by yihui but it didn't work.
I'm new to Blogdown, and I learnt about this theme yesterday from your R-Ladies workshop on YouTube. So, if I missed something, please let me know.
The text was updated successfully, but these errors were encountered: