3 ms·
I am making a personal webpage based on those examples. The problem is that I want to embed mathematical formulas, so it cannot be Javascript free; however, I
by ykonstant 2y ago
I am making a personal webpage based on those examples. The problem is that I want to embed mathematical formulas, so it cannot be Javascript free; however, I think I am doing a good job minimizing dependencies. My goal is to put some educational and research materials directly on the web, like this: https://ykonstant1.github.io/power-draft.html https://ykonstant1.github.io/power-draft.html
I think that my background is a little too yellow, though.
- enriquto 2y agoGreat site! If you want to improve its looks, you can just remove all the css styling. Also, since you are using mathjax, it's better to use the dollar signs as in LaTeX, and not all these ugly tags with classes. As a rule of thumb, going from latex to html involves little more than replacing empty lines by <p>, \sections by <h2>, and \includegraphics by <img>.
- ykonstant 2y agoThe compilation to html is being done by pandoc, so I have no saying in how the tags are generated. I don't really know anything about web dev, so this is the best I can do :( I just write Latex and markdown and wrestle with pandoc to make an html out of those :D
- ben_w 2y agoI can just about, with surprising difficulty, select the text of those mathematical formulae; but if I copy them to the clipboard, I get only blank lines. Are you sure pre-rendering images of the formulae wouldn't be just as effective?
- ykonstant 2y agoOh, I just don't know how to do that. I just use pandoc to convert latex to html, and I am not very familiar with the tool. I'll look into that, but if I pre-render, will the background color of the images match that of the website?
- ben_w 2y agoFair enough :) I was assuming giving the images a transparent background, but I don't know what pandoc supports.
- scythmic_waves 2y agoCould you generate MathML server side to avoid JS?