MathJax
Our great sponsors
MathJax | ||
---|---|---|
3 | 28 | |
284 | 8,782 | |
- | 1.0% | |
2.5 | 1.1 | |
9 months ago | 4 months ago | |
JavaScript | ||
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
- Guide (and example code) to producing beautiful PDFs from CSS and JS
-
Beautiful PDFs from HTML
Hi dang, hope you are well. May I kindly ask why not? I spent two weeks writing the CSS / HTML / JavaScript, and did well documented code - in fact the output serves as both documentation of the code and also output from it (in my own stupid way, I was thinking I was following Donald Knuth’s Literate Programming Approach :D).
The repo (https://github.com/ashok-khanna/pdf) contains all the necessary code and is intended for others to reuse in their projects. Some of it isn’t straightforward, despite the guide looking easy - I had to figure out how CSS selectors and counters work for example, how MathJax interacted with Paged.Js.
I think the confusion comes from it being labeled as a “guide”, in fact it’s a full set of code to give the required functionality for high quality PDFs from HTML, using paged.js, the guide is just the self documentation as I figured I might as well use documentation for the sample output. Otherwise, I’d be genuinely curious on what constitutes Show HN vs normal posts?
I think the repo description and the way the output is confusing / unclear - the primary goal is very much meant to be a code base for people to reuse as I’ve noticed for many programmers, the design side can be a bit more elusive.
Separately, would it be possible to add beautiful back to the title - it’s not really about producing PDFs from html as browsers can already do that, and there are many other tools. The main aim is to have the functionality to produce very high quality typeset PDFs from HTML, which until now, I only felt PrinceXML did well and that’s a paid solution. Maybe we could say the title is “High quality PDFs from HTML using Paged.JS”? I know there has been a separate discussion on another thread on the overuse of the word beautiful in describing code - my view is that it has its place when it relates to output / UI.
Thanks for reading, and no issues otherwise (no need to reply).
This looks great -- well done! I'd love to be able to use it (the CSS in particular) in a number of different projects where creating such nice readable output is a hassle. However I couldn't find a license mentioned anywhere -- either for the associated repo as a whole [0] or the CSS specifically.
Would it be possible to add a license so it's possible to know whether others can use this in other projects without rewriting the CSS from scratch?
MathJax
- Render mathematical expressions in Markdown On GitHub
- Do you trust the Obsidian company?
-
Using Obsidian for mathematical knowledge base
As others have pointed out Obsidian is using MathJaX, which is a custom implementation of a subset of TeX. It doesn't support Tikz, which is way different from the equation subset of TeX, but there is a discussion here: https://github.com/mathjax/MathJax/issues/41
-
Mataroa blog-Naked blogging platform, for minimalists. Just write
Nice. Almost what I want: simplicity, images (for plots), and no adds or tracking. However, I want to author pages on optics, and I want to use MathJax (https://www.mathjax.org/) for equations. Please let me know how I might use MathJax with Mataroa if I've misunderstood. Or, please suggest something similar that supports MathJax. Rolling my own static site (as many NH postings describe) is enticing but beyond my ability. I am not a Web programmer, and Mataroa's simplicity is perfect for me.
-
Math notation library for CojureScript
I am using https://www.mathjax.org/ for learning math. Is there any library for CLJS that can do math notation/writing like this library does?
-
How do I write this in Latex?
Obsidian uses a subset of LaTeX, and it's meant only to typeset some relatively basic maths. It does this using MathJax. Here's the list of supported commands and environments.
-
Your Pains with LaTeX
I think my current pet peeve is LaTeX's fixed output. I've been a (La)TeX user for 30+ years, starting off with plain TeX and Knuth's "The TeXbook", followed by Lamport's book on LaTeX. But I wonder whether its day is past. So much of my writing now is read online that I look for publishing solutions that have flexible outputs: the LaTeX -> PDF road, although my go-to for years, simply doesn't cut it any more. People read my stuff online, on computers, tablets, mobile phones of all sorts of sizes and orientations, that a fixed page like PDF has become more of a liability. So I'm moving away from "pure" LaTeX to org-mode with export to HTML, and using MathJax for the equations, and something like JSXGraph for (interactive) diagrams.
- PDEs You Should Know
-
Show HN: AlexCalc, a scientific calculator with LaTeX equation display
Thanks a lot! I see now, I am able to reproduce the issue if I go into chrome://flags, search for "Auto Dark Mode for Web Contents", and select "Enabled with simple HSL-based inversion". Just choosing "Enabled" seemed to break the LaTeX entirely. (Please let me know if that isn't roughly what you did)
I don't know how I'll fix this (I've never really debugged mobile web specific stuff before), but I'll look into it this weekend.
There must be a way to fix it, since I don't see the issue when going to https://www.mathjax.org/#demo and entering something like this: $$\frac{1}{\sqrt{2}}$$
-
AlexCalc, a free/ad free scientific calculator with LaTeX equation display, designed for engineering students
LaTeX equation display uses MathJax in a webview.
What are some alternatives?
KaTeX - Fast math typesetting for the web.
mathquill - Easily type math in your webapp
WeasyPrint - The awesome document factory
pandoc - Universal markup converter
asciidoctor-web-pdf - Convert AsciiDoc documents to PDF using web technologies
Hugo - The world’s fastest framework for building websites.
SingleFile - 📷 Web Extension for Firefox/Chrome/MS Edge and CLI tool to save a faithful copy of an entire web page in a single HTML file
markdown-it-katex - Add Math to your Markdown with a KaTeX plugin for Markdown-it
three.js - JavaScript 3D Library.