How to Integrate WP LaTeX into Anspress
Greetings to all.
We are running an educational platform and so would like to enable users to enter mathematical or scientific symbols correctly while posting a question or writing an answer. We have installed WP LaTeX and tested it with Anspress but it’s not working. Inserting, for example, [latex]e^{\i \pi} + 1 = 0[/latex]
which is supposed to work, does not work. Would be grateful if someone here can point us to the right direction on how to use this please. Thanks.
I guess you could either enable shortcodes in anspress (I have maybe seen something like that in this Q&A forum) or look what latex does when [latex] is called and call it manually in anspress.
In case you will spend a day or two trying to implement that and failing, I’d be willing to learn what you have found, what obstacles you can’t overcome, and help you.
It should probably be as easy as few lines of code, though.
Please share your results with us anyway.
@Dima…as always…cherish your response and perspectives. Will let you know as we progress please. I think the code thing is what we will go for eventually if enabling shortcodes pose security issues for my site. It’s a multi educational site running LMS, Anspress, and lots of other plugins with tones of shortcodes so it may not be safe to allow shortcodes execution from front end in that manner. Will revert. Thanks.
I am thinking to add white list shortcode in AnsPress, Admin can select which shortcode should be rendered.
Keep in mind that enabling shortcodes for anspress could mean security issues. Any user could execute any shortcode available for your site.