tilburgsciencehub / website-flask

0 stars 2 forks source link

Update Katex configuration and fix formulas #41

Closed krzysztof99xd closed 2 months ago

krzysztof99xd commented 2 months ago

So I updated Katex configurations according to Katex documentation (https://katex.org/docs/autorender.html) I started correcting formulas on specific articles, hopefully will correct all of them until the end of next week.

krzysztof99xd commented 2 months ago

I was thinking whether the whole integration of katex inside the Flask application is correct. I followed the documentation at (https://katex.org/docs/autorender.html) and I checked it is done in the same way on the old current website (where it works fine).

Why do I think it may not be correct? In the Hugo website using {{katex}} tags were sufficient to parse math equations, however, now when I go through the files it seems not to have an effect (I always need to insert a $ sign for the equation to be recognized). It is not a big effort for people who write articles but I started doubting whether the installation on our website is correct. On the other hand, some sources say that using $ signs exclusively is also correct (for example: https://sylhare.github.io/2022/03/23/Katex.html).

Before changing all the equations (which requires some monotonous work) I decided to ask @thierrylahaije what he thinks about it. Do you think there may be something wrong with Katex integration or are we good to go? Thanks!

thierrylahaije commented 2 months ago

Hi @krzysztof99xd ,

You can do what you think fits best! Find the solution that is the most efficient and straightforward, without doing to much manual adjustments in the .md content. Do not worry about what I did before, you can replace that fully if you have a better option!

krzysztof99xd commented 2 months ago

I believe I managed to fix all the math equations and tables. I went over all the pages and everything looks good.

hannesdatta commented 2 months ago

Amazing to hear, @krzysztof99xd! Thanks.