LaTeX.js Versions Save

JavaScript LaTeX to HTML5 translator

v0.9.0

6 years ago

restructure:

  • implemented \documentclass and parsing the preamble
  • use JS classes for documentclasses: extract article.ls, book.ls, report.ls
  • implemented environments like in LaTeX: any macro can be used in \begin/\end, and therefore, environments can now mostly be implemented without touching the parser

boxes:

  • implemented boxes: \mbox, \makebox, \parbox, \fbox, \framebox, \[rl]lap, \smash, \[vh]phantom
  • implemented lengths (changing CSS variables still TODO)

picture environment:

  • implemented \line, \Line, \vector, \Vector, \circle, and \put

titling:

  • \frontmatter, \mainmatter, \backmatter, \appendix
  • \maketitle, \title, \author, \date
  • titlepage and abstract environments

new CLI features:

  • switch output: full HTML5 or "barely" the <body> contents
  • change default documentclass
  • add custom macros
  • add custom styles

unit tests:

  • support screenshot tests (useful for CSS unit testing)

fonts:

  • set default font size to 10pt
  • \emph and \em are now context-aware
  • regenerated the CM fonts (fixes missing glyphs), fixed missing slanted typewriter
  • more beautiful \underline

v0.8.0

6 years ago

much better macro implementation:

  • the arguments of macros and the macro type can now be specified in JavaScript, making the parser more or less independent of new macros (see macros.ls for documentation)
  • macros return an array of nodes or strings
  • thus, the limitation of always treating groups as macro parameters is gone
  • prevent macros from calling JavaScript Object methods

more features:

  • use CSS variables for lengths
  • implemented diacritics (text-mode accents)
  • implemented counters, calc expressions, printing counters
  • sections use now use LaTeX counters and not CSS counters anymore
  • implemented \label and \ref
  • implemented \verb

reimplemented lists:

  • enumerate items can now be \label'd and \ref'd
  • labels for all lists are now defined by counters and macros like in LaTeX
  • max. list depths are adhered to

other new macros:

  • \the, \value
  • \message, \showthe
  • \endinput

misc:

  • refactor code (symbols and macros in their own files)
  • bugfixes (url charset, float, quotes, empty lines after \item, ] in environments, dependencies)

v0.7.0

6 years ago
  • added quote, quotation, verse environments
  • added font environments
  • implemented \item[label]
  • added many more symbols, more than 200 are now supported
  • added \noindent

v0.6.0

6 years ago

This release adds

  • the latex.js cli
  • multicols support
  • enumerate and description lists
  • \url and \href
  • automatic hyphenation with Hypher

and fixes

  • a few last whitespace bugs
  • the math font, it now uses the CMU font instead of the KaTeX fonts
  • quite a few more little bugs