periode / latex-rs

Latex to HTML publishing workflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webthesis

notes

this project takes a specific latex file and returns an AST.

from this AST, it generates a web rendering of the latex file.

doing

  • hashmap to store ast
    • have different node types as children (trait implementation?)

todo

  • preprocessor for includes
  • postprocessor
    • create table of contents
    • create table list
    • create bibliography
  • list all needed elements
    • environments
      • listing
      • itemize / item
      • minted
      • lstlisting (should all be converted to listing + minted)
      • quotation / quote (should harmonize in the thesis itself)
    • commands
    • chapter
    • section
    • subsection
    • subsubsection
    • citep
    • emph
    • caption
    • lstinline
    • mint (inline listing, bit of a weird syntax)
    • textquote
    • linespread (only to make some listings fit in one page)
    • same as above
    • footnote
    • vspace (WARNING: there's a \ in the argument list)
    • centerline (can probs ignore the arguments inside for now? the point is that it's an <hr>)
    • dots
    • pagebreak (just for print layout, could be ignored?)
    • label (that's the one that is used as a hyperlink)
    • ref (counterpart of the above ^)
    • hyperref (not sure what is the difference with ref)
    • url

done

  • environments
    • problem with nesting (issues with push and peek?)
  • command statements (e.g. \emph[opt1, opt2]{arg})
  • comments (currently silenced)
  • proper indentation system
  • serialization

About

Latex to HTML publishing workflow.


Languages

Language:Rust 86.5%Language:JavaScript 4.1%Language:HTML 3.7%Language:TeX 2.0%Language:TypeScript 1.9%Language:Svelte 1.8%