pkra / laml-wc Goto Github PK
View Code? Open in Web Editor NEWA continuation of an experiment
Home Page: https://pkra.github.io/laml-wc
A continuation of an experiment
Home Page: https://pkra.github.io/laml-wc
Let's improve the SSR setup to make it easy to build.
Penrose https://penrose.cs.cmu.edu/ recently popped up on my radar again and still seems actively maintained.
It might be nicer for generating diagrams from plain text.
or other navigation
of course there are tools that automatically generate such...
Some ideas
As already hinted at in mj.js, I had a working pagdejs demo but then something made pagedjs crash.
Let's try to bring it back.
Maybe overhaul the names. Let's collect ideas
From our last conversation, @sgcoskey would like a qed at end of proof (which we now have) BUT also the ability for an optional placement of qed.
As expected, #3 is not good enough for all of m522.
As a first complication, there's a ref-
pointing to the cantor set figure - not a theorem, thus no label to be found.
From #3 (comment)
As it turns out, counters are hard (for me). First, I had to do the bad thing and grab some code from SO to get a counter to work at all -- and not understanding enough about custom elements and their constructors to really be sure it's how I'd like it to work -- plus, what I have right now wouldn't survive re-arranging the DOM.
Second, there's the problem of counter reset. The "best" I've come up is resetting in the constructor of the sectioning element. But of course that means I need custom elements for all sectioning. Probably not a huge deal since we only have section in HTML.
But still. It all feels horrid since CSS counters give me all of this for free.
This comment should be for a new issue, I suppose.
Following #1's final change, I don't think the combination of proof-
and blame-
is good. Instead of overcomplicating statements, maybe it needs to be something entirely different?
Following the discussion in #10, let's
We use it for sections, theorems and proofs.
It creates headings, so we probably want to limit them to sectioning. Maybe just call it heading-
then?
Let's add a demo/test to render server-side.
For pushing something to GH pages, I'd like a landing page and SSR output.
I think I'd like to do a dual design - web and print - to see how far we can take a "single source" approach.
From #6 (comment)
While making them work, I ran what looks like an initialization issue. The connectedCallback was running before the children are in the DOM. Not sure why this hasn't happened earlier. I'm guessing we load the JS in the head and thus we can't assume everything has been parsed yet? Weird. Moving the script to the end of the body seems to resolve it. (And maybe we should really import as module and initialize when the DOM is ready.
It should populate its text with something worthwhile.
What's interesting from https://github.com/pkra/laml/issues ?
Following #4, we can now disable numbering for proofs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.