@tacolabs/latex-js
create compilable LaTeX documents in javascript
Last updated 9 months ago by jefferyshivers .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @tacolabs/latex-js 
SYNC missed versions from official npm registry.

jsTeX

js-standard-style

Create compilable LaTeX documents in Node

Example

const { LaTeX, elements: { Environment } } = require('latex-js')

const latex = new LaTeX()

latex.document(document => {
  document.title('My Great Project')

  const flushleft = new Environment('flushleft')
  document.environment(flushleft, content => {
    content.section('Introduction')
    content.par('lots of stuff...')
  })
})

const output = latex.output()

outputs the following:

\documentclass[10pt]{article}
\title{My Great Project}
\begin{document}
\maketitle
\begin{flushleft}
\section{Introduction}
\par lots of stuff...
\end{flushleft}
\end{document}

API

This project is developed in Typescript.

Build the library from source with yarn (will also install dependencies), or do yarn build to rebuild. The output is written to ./build.

Create and view the docs with yarn study.

Current Tags

  • 0.1.0                                ...           latest (9 months ago)

1 Versions

  • 0.1.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |