Testing ganja code in html #
On this page I want to test including ganja code directly in the post. This will allow me then to convert the ganja notebooks that I have created into Hugo pages.
On this page I want to test including ganja code directly in the post. This will allow me then to convert the ganja notebooks that I have created into Hugo pages.
I am trying to get the appearance of my blog entries to look good. I am using css classes for this purpose. With the hugo-book theme, I am beginning to have some success!
Hugo uses the excellent Go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in Go templates. Hugo uses the excellent Go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website.
...In this post I am checking out the capabilities that are needed for visualizing mathematics.
For example, $\LaTeX$:
\[ \begin{aligned} KL(\hat{y} || y) &= \sum_{c=1}^{M}\hat{y}_c \log{\frac{\hat{y}_c}{y_c}} \\ JS(\hat{y} || y) &= \frac{1}{2}(KL(y||\frac{y+\hat{y}}{2}) + KL(\hat{y}||\frac{y+\hat{y}}{2})) \end{aligned} \]Here is a GeoGebra demo of Pascal’s theorem. You can’t access the main menu but you can use the construction tools. First we show both in a 2-column format. Unfortunately the GeoGebra borders are huge and I don’t know how to omit them.
...Girard Desargues (1591-1661), mathematician, architect and engineer, discovered a new and intriguing geometry, which he reported on in the short book “Rough draft of an essay on the results of taking plane sections of a cone” (1639). Introducing new concepts into geometry related to the rise of perspective painting, the book provided startling new proofs of Apollonius’s classical results on conics. Desargues’ work was far ahead of its time, and vanished almost without a trace soon after his death.
...