pkra / laml

a lame joke about LaTeX and HTML
https://pkra.github.io/laml/
2 stars 1 forks source link

laml

A lame joke on LaTeX and HTML.

A bit of JS that converts a bunch of tags into something perhaps useful.

So what's this?

A while ago, @scoskey asked @pkra got talking about authoring long form for the web when you have a LaTeX background.

@scoskey suggested that the key may be in the experience of having a text editor open (perhaps with a live preview side-by-side), writing somewhat raw code, having a bit of magic to transform said code into something nice, having the ability to modify existing transformations and adding your own.

@pkra claimed that this is not hard nowadays and @scoskey called him out on it.

This is the result.

Caveat emptor this is the result of a few hours.

Demo

Vince Vatter, An Erdős-Hajnal analogue for permutation classes" (source)

Example components

Some simple components

TODOs

See the issues.

Getting started

Tips and tools

Some tools and training tips might help.

Learn Emmet

Emmet is a fantastic tool built into many text editors these days. Think of it as overpowered code snippets.

We strongly suggest learning it as it makes writing lots of HTML reasonable.