LaTeX Boilerplate with script written in Node.js for cross-platform compiling single / multiple LaTeX files.
- Node.js
- LaTeX compiler
- LaTeX packages
- For compiling file
examples/algorithms.tex
- algorithmicx - For compiling file
examples/hyperlinks.tex
- hyperref
- For compiling file
Please install all package dependencies by using following command
npm install
-
Create any valid LaTeX (
.tex
) file insrc
directory (or in subdirectories). -
After you're done, you can compile by using one of following scripts.
-
For compiling all documents present in
src
directory, use:npm run compile:all
-
If you wish to compile single file only, specify the
--file
flag with relative path insrc
directory, e.g.:npm run compile -- --file document.tex
-
--clean
- If provided, the script will clean the output directory (remove all files in
out
, so use it carefully)
- If provided, the script will clean the output directory (remove all files in
--file
- This option is used when specifying relative path to a single file
--all
- If specified, script will compile all
.tex
files insrc
directory (or in any subdirectory).
- If specified, script will compile all
--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