Coder Social home page Coder Social logo

latexjs's Introduction

LaTeXJS

LaTeX Boilerplate with script written in Node.js for cross-platform compiling single / multiple LaTeX files.

Prerequirements

  • Node.js
  • LaTeX compiler
  • LaTeX packages
    • For compiling file examples/algorithms.tex - algorithmicx
    • For compiling file examples/hyperlinks.tex - hyperref

Usage

Installation

Please install all package dependencies by using following command

npm install

How to use this package?

  1. Create any valid LaTeX (.tex) file in src directory (or in subdirectories).

  2. After you're done, you can compile by using one of following scripts.

    1. For compiling all documents present in src directory, use:

      npm run compile:all
    2. If you wish to compile single file only, specify the --file flag with relative path in src directory, e.g.:

      npm run compile -- --file document.tex

Command Line Options

  • --clean
    • If provided, the script will clean the output directory (remove all files in out, so use it carefully)
  • --file
    • This option is used when specifying relative path to a single file
  • --all
    • If specified, script will compile all .tex files in src directory (or in any subdirectory).
  • --inputs
    • Importing assets should contain URL relative to the working directory. If you wish to specify more relative paths, use this option.
    • Supported values: multiple string URLs, separated by comma.
    • E.g. --inputs src/examples/assets/img,src/examples/templates

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.